happy-api
v0.0.2
Published
API middleware for Redux.
Downloads
1
Maintainers
Readme
Happy API
API middleware for Redux.
npm install happy-api
import API from 'redux-thunk'; // no changes here 😀
Why Do I Need This?
TODO
Motivation
TODO
Installation
TODO
npm install happy-api
Then, to enable Redux Thunk, use
applyMiddleware()
:
import { createStore, applyMiddleware } from 'redux';
import API from 'redux-thunk';
import rootReducer from './reducers/index';
// Note: this API requires redux@>=3.1.0
const store = createStore(rootReducer, applyMiddleware(API));
License
MIT