Created
July 19, 2021 13:47
-
-
Save mercykip/970b45c7fcddeac2e57110ac5cd17328 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 reducers from './reducer/index'; | |
| import thunk from 'redux-thunk'; | |
| const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
| /// store holds the state of the application | |
| const store = createStore(reducers, {}, composeEnhancers(applyMiddleware(thunk))); | |
| export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment