Created
February 8, 2018 15:38
-
-
Save cdaz5/f307afe8a0188944bd21ff0bffd22945 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
| // 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