Skip to content

Instantly share code, notes, and snippets.

@chasingSublimity
Created March 11, 2017 18:02
Show Gist options
  • Save chasingSublimity/cd9c08db0ce56d8d4374b4d682ed0f47 to your computer and use it in GitHub Desktop.
Save chasingSublimity/cd9c08db0ce56d8d4374b4d682ed0f47 to your computer and use it in GitHub Desktop.
redux dev tools with middleware
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