Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.71 KB

API.md

File metadata and controls

49 lines (34 loc) · 1.71 KB

dux

dux.update : function

Object immutability helper. See update-js.

Kind: static constant of dux

dux.combine([reducers])

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.

dux.dux(options)

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.

dux.createStore()

Creates Redux store. See createStore.md.

Kind: static method of dux