Created
June 10, 2018 10:24
-
-
Save kiok46/2bccc1b6f1d68ed95db9eacc31a7c1a5 to your computer and use it in GitHub Desktop.
Redux, Store, Actions, Reducers and logger: Get Started and a little further (1)
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
| // store/index.js | |
| import { createStore, compose, applyMiddleware } from ‘redux’; | |
| import thunk from ‘redux-thunk’; | |
| const store = createStore({ | |
| reducers, | |
| {}, // default state of the application | |
| compose( | |
| applyMiddleware(thunk) | |
| ) | |
| }) | |
| export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment