Created
October 20, 2016 17:36
-
-
Save bnhansn/6db36fdca1dc54a8086f103ec7f0daee to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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