-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (25 loc) · 867 Bytes
/
index.js
File metadata and controls
26 lines (25 loc) · 867 Bytes
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
import React from "react";
import ReactDOM from "react-dom";
import "./index.css";
import App from "./App";
import registerServiceWorker from "./registerServiceWorker";
import store, { history } from "./config/store";
import Splash from "./screens/Splash.js";
import Login from "./screens/Login.js";
import Dashboard from "./screens/Dashboard.js";
import { Provider } from "react-redux";
import { Route } from "react-router-dom";
import { ConnectedRouter } from "react-router-redux";
ReactDOM.render(
<Provider store={store}>
<ConnectedRouter history={history}>
<div>
<Route exact path="/" component={Splash} />
<Route exact path="/login" component={Login} />
<Route exact path="/dashboard" component={Dashboard} />
</div>
</ConnectedRouter>
</Provider>,
document.getElementById('root'),
);
registerServiceWorker();