-
Notifications
You must be signed in to change notification settings - Fork 198
/
Copy pathApp.js
46 lines (43 loc) · 1.09 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
import './App.css';
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";
import Navbar from './components/Navbar';
import { Home } from './components/Home';
import About from './components/About';
import NoteState from './context/notes/NoteState';
import { Alert } from './components/Alert';
import Signup from './components/Signup';
import Login from './components/Login';
import "./css/homepage.css"
function App() {
return (
<>
<NoteState>
<Router>
<Navbar />
<Alert message="This is amazing React course" />
<div className="container">
<Switch>
<Route exact path="/">
<Home />
</Route>
<Route exact path="/about">
<About />
</Route>
<Route exact path="/login">
<Login />
</Route>
<Route exact path="/signup">
<Signup />
</Route>
</Switch>
</div>
</Router>
</NoteState>
</>
);
}
export default App;