Created
April 13, 2016 07:23
-
-
Save lesniakania/1316961fb8fca809be9e6adaf8bea2ad 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
| 'use strict'; | |
| import { createStore, combineReducers, compose, applyMiddleware } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import { routeReducer } from 'redux-simple-router'; | |
| import SubmissionsReducer from './reducers/SubmissionsReducer'; | |
| const reducers = { | |
| submissions: SubmissionsReducer, | |
| routing: routeReducer | |
| }; | |
| const reducer = combineReducers(reducers); | |
| const createStoreWithMiddleware = compose( | |
| applyMiddleware(thunk) | |
| )(createStore); | |
| const store = createStoreWithMiddleware(reducer); | |
| export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment