Global

Methods

combineReducers(reducers) → {function}

Combine multiple reducers into one (Redux-style)
Parameters:
Name Type Description
reducers Object.<string, function(S, A): S> An object mapping keys to reducer functions
Source:
Returns:
A root reducer function
Type
function

combineReducers(reducers) → {function}

Combine multiple reducers into one (Redux-style)
Parameters:
Name Type Description
reducers Object.<string, function(S, A): S> An object mapping keys to reducer functions
Source:
Returns:
A root reducer function
Type
function

createAction(type) → {function}

Simple action creator
Parameters:
Name Type Description
type string The action type
Source:
Returns:
An action creator function
Type
function

createAction(type) → {function}

Simple action creator
Parameters:
Name Type Description
type string The action type
Source:
Returns:
An action creator function
Type
function

createStore(reducer, initialState) → {Object}

Create a simple store with reducer and initial state Emits EVENTS.STATE_CHANGED on every dispatch
Parameters:
Name Type Description
reducer function The reducer function
initialState S The initial state
Source:
Returns:
Store API
Type
Object

createStore(reducer, initialState) → {Object}

Create a simple store with reducer and initial state Emits EVENTS.STATE_CHANGED on every dispatch
Parameters:
Name Type Description
reducer function The reducer function
initialState S The initial state
Source:
Returns:
Store API
Type
Object