Created
April 1, 2017 12:50
-
-
Save LazyFatArrow/d48f9eba85679d6036105356d5f905eb to your computer and use it in GitHub Desktop.
This file contains 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'; | |
// root reducer | |
import rootReducer from './rootReducer'; | |
// redux devtools | |
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
// create the store | |
const configureStore = () => { | |
const store = { | |
...createStore(rootReducer, composeEnhancers( | |
applyMiddleware())) | |
}; | |
return store; | |
}; | |
export default configureStore; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment