-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.tsx
30 lines (27 loc) · 889 Bytes
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import * as React from "react";
import * as ReactDOM from "react-dom";
import { App } from "./app/containers/App";
import "./theme/style.css";
import "./theme/style.scss";
import { createStore, applyMiddleware, Store } from "redux";
import { Provider } from "react-redux";
import thunk from "redux-thunk";
import { combineReducers } from "redux";
import { ActionListenerReducer } from "./lib/ActionListener";
import reducer from "./app/containers/Dashboard/reducer";
import { ToastProvider } from "react-toast-notifications";
const appReducer = combineReducers({
actionListenerState: ActionListenerReducer,
dashboardState: reducer,
});
const store: Store & {
dispatch: any,
} = createStore(appReducer, applyMiddleware(thunk));
ReactDOM.render(
<Provider store={store}>
<ToastProvider>
<App />
</ToastProvider>
</Provider>,
document.getElementById("output")
);