Methods
(static) reducer(initialUIopt) → {function}
Generate a Nux reducer function given a custom reducer function.
Create a reducer using a provided reducer combined with Nux's internal reducer. An initial vDOM UI object
can be passed in to initialize the store with, as well as any options to further configure the reducer.
The reducer returned is intended for use with a Redux store.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
initialUI |
Object |
<optional> |
The initial UI vDOM object which will become the first state to be rendered. |
- Source:
Returns:
The core reducer function to be used to initialize a Redux store
- Type
- function
Type Definitions
Map
An Immutable Map.
Type:
- Object
- Source: