Created
March 11, 2017 02:49
-
-
Save tsongas/cfb7853df92d02feb776cdb3bd90e84c to your computer and use it in GitHub Desktop.
How to use Redux DevTools with Redux Thunk
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 reduxThunk from 'redux-thunk'; | |
import reducers from './reducers'; | |
const store = createStore(reducers, | |
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(), | |
applyMiddleware(reduxThunk)); |
Just curious. How is this working without using compose? isn't the second argument in createStore() suppose to be 'initialState'?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks, this works well.