Skip to content

Instantly share code, notes, and snippets.

@victorvhpg
Created April 9, 2018 01:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save victorvhpg/a38ad76759fbc24cc7acaa3e601b75cc to your computer and use it in GitHub Desktop.
Save victorvhpg/a38ad76759fbc24cc7acaa3e601b75cc to your computer and use it in GitHub Desktop.
store
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