text: import { createStore, applyMiddleware, compose } from 'redux';
  import thunkMiddleware from 'redux-thunk';
  
  import rootReducer from './rootReducer.js';
  
  const middlewares = [thunkMiddleware];
  
  // let composeEnhancers = compose;
  
  const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
      ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({ name: 'STORE' })
      : compose;
  
  const store = createStore(rootReducer, composeEnhancers(applyMiddleware(...middlewares)));
  
  export default store;
  