Skip to content

Instantly share code, notes, and snippets.

@xMartin
Created April 7, 2017 09:46
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 xMartin/b87ba4c584558280cdf6d1dcec4a0cad to your computer and use it in GitHub Desktop.
Save xMartin/b87ba4c584558280cdf6d1dcec4a0cad to your computer and use it in GitHub Desktop.
import { createStore, applyMiddleware, compose } from 'redux';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, INITIAL_STATE, composeEnhancers(
applyMiddleware(thunkMiddleware)
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment