react-redux-isomorphic
Version:
Set of utilities for creating isomorphic applications using react-redux
11 lines (9 loc) • 347 B
JavaScript
import { useSelector } from 'react-redux';
import getComponentState from './getComponentState';
var useComponentState = function useComponentState(isomorphicId) {
var componentState = useSelector(function (storeState) {
return getComponentState(storeState, isomorphicId);
});
return componentState;
};
export default useComponentState;