@f/compose-middleware
v2.0.0
Published
Compose redux middleware.
Downloads
124
Readme
compose-middleware
True redux middleware composition.
Installation
$ npm install @f/compose-middleware
Usage
var composeMiddleware = require('@f/compose-middleware')
var redux = require('redux')
var logger = require('redux-logger')
var thunk = require('redux-thunk')
var ware = composeMiddleware([
thunk,
logger()
])
var createStore = redux.applyMiddleware(ware)(redux.createStore)
API
composeMiddleware(middleware)
middleware
- An array of redux style middleware.
Returns: A single redux style middleware function that is a composition of middleware
.
License
MIT