UNPKG

dm-web-react

Version:

The DM web client with React.

11 lines 524 B
import { applyMiddleware, compose, createStore } from "redux"; import thunk from "redux-thunk"; import createRootReducer from "./createRootReducer"; export default (function (initialState) { if (initialState === void 0) { initialState = {}; } var middleware = [thunk]; var enhancers = []; var store = createStore(createRootReducer({}), initialState, compose.apply(void 0, [applyMiddleware.apply(void 0, middleware)].concat(enhancers))); return store; }); //# sourceMappingURL=createStore.js.map