text: import { createStore, applyMiddleware, compose } from 'redux';
  import thunk from 'redux-thunk';
  import rootReducer from '../src/reducers/index';
  
  export default function configureStore() {
    return createStore(
      rootReducer,
      compose(
        applyMiddleware(thunk),
        //works without devtools enabled
        window.__REDUX_DEVTOOLS_EXTENSION__
          ? window.__REDUX_DEVTOOLS_EXTENSION__()
          : f => f
      )
    );
  }
  