redux-toolbox

2.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    27
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    27
  • 1.0.0
    72

Package Sidebar

Install

npm i redux-toolbox

Weekly Downloads

9

Version

2.0.0

License

MIT

Unpacked Size

5.86 kB

Total Files

5

Last publish

Collaborators

  • mthadley