Skip to content

Instantly share code, notes, and snippets.

@tsongas
Created March 11, 2017 02:49
Show Gist options
  • Save tsongas/cfb7853df92d02feb776cdb3bd90e84c to your computer and use it in GitHub Desktop.
Save tsongas/cfb7853df92d02feb776cdb3bd90e84c to your computer and use it in GitHub Desktop.
How to use Redux DevTools with Redux Thunk
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));
@one-dumb-dude
Copy link

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