1.0.0 • Published 8 years ago
redux-handle-actions v1.0.0
redux-handle-actions
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 signaturehandler(action)
Returns: redux middleware
License
MIT
1.0.0
8 years ago