npm.io
1.0.0 • Published 10 years ago

redux-handle-actions

Licence
MIT
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

redux-handle-actions

Build status Git tag NPM version Code style

Redux middleware for handling actions.

Installation

$ npm install redux-handle-actions

Usage

import HandleActions from 'redux-handle-actions'
import bind from '@f/bind-middleware'

let io = bind([HandleActions(add)])
io(0) // => 1

function add (action) {
  return action + 1
}

API

reduxHandleActions(handler)
  • handler - action handler with signature handler(action)

Returns: redux middleware

License

MIT