Skip to content

Instantly share code, notes, and snippets.

@mercykip
Created July 19, 2021 13:47
Show Gist options
  • Select an option

  • Save mercykip/970b45c7fcddeac2e57110ac5cd17328 to your computer and use it in GitHub Desktop.

Select an option

Save mercykip/970b45c7fcddeac2e57110ac5cd17328 to your computer and use it in GitHub Desktop.
import { createStore, applyMiddleware, compose } from 'redux';
import reducers from './reducer/index';
import thunk from 'redux-thunk';
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
/// store holds the state of the application
const store = createStore(reducers, {}, composeEnhancers(applyMiddleware(thunk)));
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment