Created
September 3, 2018 08:14
-
-
Save drex44/e86be52f6ac8e20e0262d5a77160ea5f 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"; | |
// Logger with default options | |
import logger from "redux-logger"; | |
import reducer from "./reducer"; | |
export default function configureStore(initialState) { | |
const store = createStore(reducer, initialState, applyMiddleware(logger)); | |
return store; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment