Dependencies
- ExtendableRecord
- (transitive) ImmutableJS
Getting Started
npm install immutable-reducer --save
Examples
Usage
appReducer.js
;;;; { return this; } { return this; } { const now = ; const birth = ; return now; } AppReducerdefaultProperties = user: null; const userReducer = ;
appStore.js
; const store = ;
actions.js
const SET_USER = 'SET_USER';const CLEAR_USER = 'CLEAR_USER'; const login = type: SET_USER payload: user; const logout = type: CLEAR_USER;
Credits
- ImmutableJS for underlying data structures
- npm-starter
- Airbnb for the work they've put into the javascript style guide and into the ESlint package.
License
MIT @ Joe Delgado