Created
March 3, 2019 10:49
-
-
Save ondrej-janosik/b015d697bcf08dbf16d031b381f4c809 to your computer and use it in GitHub Desktop.
redux-starter-kit configureStore
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 { configureStore, getDefaultMiddleware } from 'redux-starter-kit'; | |
import logger from 'redux-logger' | |
import cameraReducer from './reducers/camera'; | |
import mapReducer from './reducers/map'; | |
const store = configureStore({ | |
reducer: { | |
camera: cameraReducer, | |
map: mapReducer, | |
}, | |
middleware: [...getDefaultMiddleware(), logger], | |
devTools: process.env.NODE_ENV !== 'production', | |
}); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment