react-raise
Version:
a react cli starter kit that bootstraps a react application
12 lines (8 loc) • 305 B
JavaScript
import { applyMiddleware, createStore, compose } from 'redux';
import thunk from 'redux-thunk';
import reducers from './reducers/root.reducer';
const middleware = [thunk];
const finalCreateStore = compose(
applyMiddleware(...middleware)
)(createStore);
export default finalCreateStore(reducers);