Created
April 8, 2018 10:00
-
-
Save kdichev/a0fe730ad421812c1aebc71727d7fd6d to your computer and use it in GitHub Desktop.
store
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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