Created
March 11, 2017 18:02
-
-
Save chasingSublimity/cd9c08db0ce56d8d4374b4d682ed0f47 to your computer and use it in GitHub Desktop.
redux dev tools with middleware
This file contains 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)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment