dm-web-react
Version:
The DM web client with React.
13 lines (9 loc) • 361 B
text/typescript
import { fromJS } from "immutable";
import { Store as ReduxStore } from "redux";
import createStore from "../common/createStore";
export interface Store extends ReduxStore {
asyncReducers?: { [key: string]: any };
}
const initialState = fromJS((window as any).__INITIAL_STATE__ || {});
const store: Store = createStore(initialState);
export default store;