import { createStore , applyMiddleware } from 'redux' ; import thunk from 'redux-thunk' ; import { rootReducer } from './store' ; export default function configureStore ( ) { return createStore ( rootReducer , applyMiddleware ( thunk ) ) ; }