Skip to content

Instantly share code, notes, and snippets.

@trooperandz
Created April 22, 2020 05:30
Show Gist options
  • Save trooperandz/f8768f8428bfef021def43fda252b0fa to your computer and use it in GitHub Desktop.
Save trooperandz/f8768f8428bfef021def43fda252b0fa to your computer and use it in GitHub Desktop.
React store index file
import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { rootReducer } from 'redux/reducers';
export const configureStore = () => {
const store = createStore(rootReducer, applyMiddleware(thunk));
return store;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment