1.0.0 • Published 8 years ago

redux-handle-actions v1.0.0

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

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