Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Created October 20, 2016 17:36
Show Gist options
  • Save bnhansn/6db36fdca1dc54a8086f103ec7f0daee to your computer and use it in GitHub Desktop.
Save bnhansn/6db36fdca1dc54a8086f103ec7f0daee to your computer and use it in GitHub Desktop.
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import reducers from '../reducers';
const middleWare = [thunk];
const createStoreWithMiddleware = applyMiddleware(...middleWare)(createStore);
const store = createStoreWithMiddleware(reducers);
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment