score:0

import { createStore, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers/index';

const middleware = [thunk];

const store = createStore(
   rootReducer,
   composeWithDevTools(applyMiddleware(...middleware)),
);

export default store;

Related Query

More Query from same tag