-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
80 lines (62 loc) · 1.91 KB
/
App.js
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
import React, {useState, useEffect} from 'react';
import bg from './components/assets/bg.png';
import Sidebar from './components/widgets/Sidebar';
import Home from './page/Home';
import Notes from './page/Notes';
import Signup from './page/Signup';
import Login from './page/Login';
import Timer from './page/Timer';
import Stopwatch from './page/Stopwatch';
import {Routes, Route} from 'react-router-dom';
import Navbar from './components/widgets/Navbar';
import Layout from './components/widgets/Layout';
import BasicExample from './page/Card'
import { BrowserRouter as Router } from 'react-router-dom';
function App() {
return (
<Router>
<div className="App bg-primary">
<section>
<div>
<Routes>
<Route
path="/home"
element={
<Layout>
</Layout>
}
/>
<Route
path="/notes"
element={
<Layout>
< Notes />
</Layout>
}
/>
<Route
path="/timer"
element={
<Layout>
< Timer />
</Layout>
}
/>
<Route
path="/stopwatch"
element={
<Layout>
< Stopwatch />
</Layout>
}
/>
<Route path="/" element={<Signup/>}/>
<Route path="/login" element={<Login/>}/>
</Routes>
</div>
</section>
</div>
</Router>
);
}
export default App;