9c0df36e16
* style: enforce sorting of imports * style: alphabetize imports * style: merge duplicated imports
21 lines
512 B
JavaScript
21 lines
512 B
JavaScript
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 <Provider store={store}>{children}</Provider>;
|
|
}
|