[69507b]: / app / frontend / src / components / App.js

Download this file

36 lines (28 with data), 718 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
27
28
29
30
31
32
33
34
35
import React from 'react'
import Header from './Header'
import Past from './Past'
import Upload from './Upload'
import {
BrowserRouter as Router,
Switch,
Route,
Link
} from 'react-router-dom'
const App = () => {
return (
<Router>
<Header />
<div className = "flex flex-col items-center justify-center">
<Switch>
<Route exact path = '/'>
<Upload />
</Route>
<Route exact path = '/past'>
<Past />
</Route>
</Switch>
</div>
</Router>
)
}
export default App;