Skip to content

Instantly share code, notes, and snippets.

@LazyFatArrow
Created April 1, 2017 12:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LazyFatArrow/d48f9eba85679d6036105356d5f905eb to your computer and use it in GitHub Desktop.
Save LazyFatArrow/d48f9eba85679d6036105356d5f905eb to your computer and use it in GitHub Desktop.
import {
createStore,
applyMiddleware,
compose
} from 'redux';
// root reducer
import rootReducer from './rootReducer';
// redux devtools
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
// create the store
const configureStore = () => {
const store = {
...createStore(rootReducer, composeEnhancers(
applyMiddleware()))
};
return store;
};
export default configureStore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment