This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 1,000,000+ packages pre-installed, including
redux-get with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Redux enhancer to access state props and selectors via a simple store.get() method.
npm i --save redux-get
A single map containing all the selectors with a similar shape as your reducer.
Returns the store value.
Returns the selectors map.
Returns a selector function.
const store = createStore(reducer, createGetters(selectors))
If you would like to access selectors as straight up getters from the state object returned by
store.getState() have a look at this project https://github.com/luwes/redux-proxy-selectors