text: import { createStore, applyMiddleware, combineReducers } from 'redux';
  import thunkMiddleware from 'redux-thunk';
  import loggerMiddleware from 'redux-logger';
  import rootReducer from './reducers';
  
  const createStoreWithMiddleware = applyMiddleware(
    thunkMiddleware,
    loggerMiddleware
  )(createStore);
  
  export default function configureStore (initialState) {
    return createStoreWithMiddleware(rootReducer, initialState);
  }
  