@gik/redux-factory 0.0.7
A shorthand for our redux/redux-thunk workflow
Contributors
Supported platforms
- darwin
- linux
Table of contents
Factory
global function
Actions and Reducers factory. Shorthand for reducing boilerplate needed to cerate reducers and actions.
Parameters
initState
|
Object | The initial state for the reducer. |
declarations
|
Object | An object contaning an action and a reducer. |
prefix
|
string | An optional prefix for the actions/reducers. |
Returns
Object
- A { Actions, Reducers } object.
Store
global function
Store creator. Shorthand for Redux's CreateStore.
Parameters
reducers
|
Object | function | Either a reducer or an object containing reducers. |
initStore
|
Object | The initial value of the store. |
middleware
|
Array | An array of middlewares to register. |
Returns
ReduxStore
- The store to pass to the provider.