-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
50 lines (47 loc) · 1.25 KB
/
Copy pathindex.js
File metadata and controls
50 lines (47 loc) · 1.25 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from 'react';
import ReactDOM from 'react-dom';
import * as ReactRouter from 'react-router-dom'
import './index.css';
import NormalMap from './AppClass';
import OpticalFlow from './OpticalFlow';
import reportWebVitals from './reportWebVitals';
let { BrowserRouter, Switch,
Route,
Link
} = ReactRouter
ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<div>
<nav>
<ul>
<li>
<Link to="/">Home</Link>
</li>
<li>
<Link to="/normalMap">normalMap</Link>
</li>
<li>
<Link to="/opticalFlow">opticalFlow</Link>
</li>
</ul>
</nav>
<Switch>
<Route path="/normalMap">
<NormalMap />
</Route>
<Route path="/opticalFlow">
<OpticalFlow />
</Route>
<Route path="/">
</Route>
</Switch>
</div>
</BrowserRouter>
</React.StrictMode>,
document.getElementById('root')
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();