- dux
- .update :
function
- .combine([reducers])
- .dux(options)
- .createStore()
- .update :
Object immutability helper. See update-js.
Kind: static constant of dux
Combines an array of reducers into one. If reducer doesn't modify the state it should return its first argument. In the case nothing is passed, the resulting reducer will be an identity function.
Kind: static method of dux
Param | Type | Description |
---|---|---|
[reducers] | Array.<function()> |
Reducers to combine into one. |
Creates a Redux module.
Kind: static method of dux
Param | Type | Description |
---|---|---|
options | Object |
set of key-value pairs, where key is an action creator name and value is a reducer function. The reducer function receives a slice of the state, corresponding to the module, and arguments passed to the action creator: (slice, ...args). The reducer function can return either a new slice or a function which receives the whole state and returns a new slice. |
Creates Redux store. See createStore.md.
Kind: static method of dux