- redux action types are prefixed with a scope (
your-action
becomespath/to/scope/your-action
) - components must NOT know about this; instead they use scoped versions of
getState()
anddispatch()
- reducers must NOT know about this; instead they scope is removed before they receive their actions
- provides scoped versions of
getState()
anddispatch()
ofredux
- provides scoped version of redux store that can be passed to
connect()
ofreact-redux
- provides scoped versions of your reducer functions
import {scopeGetState, scopeDispatch, scopeReducer, scopeStore} from 'redux-react'
...
See examples/accounts.js.
- Install
npm install
- Tests
npm test
- Examples
node examples/accounts.js