Skip to content

Instantly share code, notes, and snippets.



Last active Nov 18, 2016
What would you like to do?
import {createStore, applyMiddleware} from 'redux';
import createLogger from 'redux-logger';
import rootReducer from '../reducers/index';
const logger = createLogger();
const createStoreWithMiddleware = applyMiddleware(logger)(createStore);
export function configureStore(initialState) {
return createStoreWithMiddleware(rootReducer, initialState);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment