Created
November 17, 2017 13:31
-
-
Save alexbeletsky/fe6e2d8edadd00435a52d81702f2cab9 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 } from 'redux'; | |
| import { createAnalytics } from '../middleware'; | |
| const middlewares = [ | |
| thunk, | |
| createLogger(), | |
| createAnalytics({ host: 'ANALYTICS_HOST', token: 'ANALYTICS_TOKEN' }) | |
| ]; | |
| const enchancer = applyMiddleware(...middlewares); | |
| export default function configureStore(rootReducer, initialState) { | |
| return createStore(rootReducer, initialState, enchancer) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment