Advertisement
Guest User

Untitled

a guest
Oct 21st, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import {createStore, compose, applyMiddleware} from 'redux'
  2. import thunkMiddleware from 'redux-thunk'
  3. import reducer from '../reducer'
  4. //import callAPI from '../middlewares/callAPI'
  5.  
  6. const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
  7.     window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({
  8.     }) : compose;
  9.  
  10. const enhancer = composeEnhancers(applyMiddleware(thunkMiddleware));
  11.  
  12. const store = createStore(reducer, enhancer);
  13. window.store = store;
  14.  
  15. export default store
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement