Created
April 9, 2018 01:02
-
-
Save victorvhpg/a38ad76759fbc24cc7acaa3e601b75cc to your computer and use it in GitHub Desktop.
store
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'; | |
//importa os middlewares | |
import logger from 'redux-logger'; | |
import thunk from 'redux-thunk'; | |
//importa os reducers | |
import rootReducers from './reducers'; | |
//cria a store passando os reducers e os middlewares | |
let store = createStore( | |
rootReducers, | |
applyMiddleware(thunk, logger) | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment