Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
My default Redux configureStore file for production environment
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from '../reducers';
import { createLogger } from 'redux-logger';
const configureStore = preloadedState => createStore(
rootReducer,
preloadedState,
applyMiddleware(
thunk,
createLogger(),
),
);
export default configureStore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment