import React from 'react'; import { Provider } from 'react-redux'; import { createStore, combineReducers, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import reducers from '../client/reducers'; let appReducer = combineReducers(reducers); let store = null; export function resetStore() { store = createStore(appReducer, undefined, applyMiddleware(thunk /* log */)); } resetStore(); export function TestProvider({ children }) { return {children}; }