Skip to content

Instantly share code, notes, and snippets.

@kdichev
Created April 8, 2018 10:00
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 kdichev/a0fe730ad421812c1aebc71727d7fd6d to your computer and use it in GitHub Desktop.
Save kdichev/a0fe730ad421812c1aebc71727d7fd6d to your computer and use it in GitHub Desktop.
store
import { createStore, applyMiddleware, compose } from "redux";
import thunkMiddleware from "redux-thunk";
const configureStore = (initialState) =>
createStore(
// here reducers
// REDUCERS.js
persistedState,
compose(
applyMiddleware(
thunkMiddleware,
)
// FOR DEV TOOLS
// window.__REDUX_DEVTOOLS_EXTENSION__ &&
// window.__REDUX_DEVTOOLS_EXTENSION__()
)
);
export default configureStore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment