index.js 318 B

1234567891011
  1. import { createStore, compose, applyMiddleware } from 'redux';
  2. import thunk from 'redux-thunk';
  3. import reducer from './reducer';
  4. const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
  5. const store = createStore(reducer, composeEnhancers(
  6. applyMiddleware(thunk)
  7. ));
  8. export default store;