Skip to content

Instantly share code, notes, and snippets.

@cdaz5
Created February 8, 2018 15:38
Show Gist options
  • Select an option

  • Save cdaz5/f307afe8a0188944bd21ff0bffd22945 to your computer and use it in GitHub Desktop.

Select an option

Save cdaz5/f307afe8a0188944bd21ff0bffd22945 to your computer and use it in GitHub Desktop.
// Whatever file you create your store in...
import { applyMiddleware, createStore } from 'redux';
import thunk from 'redux-thunk'; // or sagaMiddle whatever you prefer
import { composeWithDevTools } from 'redux-devtools-extension';
import rootReducer from '//pathToRootReducer';
const middleware = [thunk]; // or sagaMiddleware whatever you use
const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(...middleware)));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment