Created
July 18, 2017 00:37
-
-
Save btg5679/fc63884651faaf8ad7dc136ee0b66546 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
... | |
const initialState = {} | |
const enhancers = [] | |
const middleware = [ | |
thunk, | |
routerMiddleware(history) | |
] | |
const composedEnhancers = compose( | |
applyMiddleware(...middleware), | |
...enhancers | |
) | |
console.log('state', store); | |
const store = createStore( | |
rootReducer, | |
initialState, | |
composedEnhancers | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment