score:4

Accepted answer
const store = createStore(rootReducer, bindMiddleware([thunkMiddleware]));

const initStore = () => {
  return store
};

Related Query

More Query from same tag