npm.io
2.0.0 • Published 8 years ago

redux-toolbox

Licence
MIT
Version
2.0.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
1

redux-toolbox

Just a small collection of redux utilities I've found useful between different projects.

Usage

$ npm install redux-toolbox

Then import the desired utility:

import {createReducer} from 'redux-toolbox';

export default createReducer(0, {
  increment: (state) => state + 1
  decrement: (state) => state - 1
})

API

  • composeReducers(...reducers)
  • createActionTypes(action, name, [options])
  • createReducer(initialState, actionHandlers)

See source code for more type information.

LICENSE

MIT

Keywords