Skip to content

Instantly share code, notes, and snippets.

@xMartin
Created April 7, 2017 09:46
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