Last active
July 8, 2016 12:36
-
-
Save kazagkazag/ac636d9b175f0e8864f229a2836fcae3 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 rootReducer from '../rootReducer'; | |
| // import createLogger from "redux-logger"; | |
| // import thunkMiddleware from "redux-thunk"; | |
| const loggerMiddleware = createLogger(); | |
| const initialState = { | |
| someProperty: [] | |
| }; | |
| const store = createStore( | |
| rootReducer, | |
| initialState, | |
| compose( | |
| applyMiddleware( | |
| thunkMiddleware, | |
| loggerMiddleware | |
| ), | |
| window.devToolsExtension ? window.devToolsExtension() : f => f | |
| ) | |
| ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment