index.js 344 B

12345678910
  1. import { createStore, applyMiddleware } from 'redux';
  2. import thunk from 'redux-thunk';
  3. import { rootReducer } from '../rootReducer';
  4. import { composeWithDevTools } from 'redux-devtools-extension';
  5. const composeEnhancers = composeWithDevTools({});
  6. export const store = createStore(
  7. rootReducer,
  8. composeEnhancers(applyMiddleware(thunk)),
  9. );