First commit

This commit is contained in:
2021-04-15 15:08:54 -07:00
commit 2ccebf13b8
39 changed files with 26887 additions and 0 deletions

18
src/client/store/index.js Normal file
View File

@@ -0,0 +1,18 @@
import { routerMiddleware } from "connected-react-router";
import { createStore, applyMiddleware, compose } from "redux";
import { createBrowserHistory } from "history";
import thunk from "redux-thunk";
import createRootReducer from "../reducers";
export const history = createBrowserHistory();
export default function configureStore(initialState) {
const store = createStore(
createRootReducer(history),
initialState,
compose(
applyMiddleware(thunk, routerMiddleware(history)),
// window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
),
);
return store;
}