-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
42 lines (31 loc) · 1 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
import Navbar from "./Navbar/Navbar";
//import AddStudent from "./Pages/";
import { useState } from "react";
import {BrowserRouter , Route , Routes} from 'react-router-dom';
import Login from "./Pages/login/Login";
import Blogs from "./Components/Blogs";
import Error from "./Pages/Error";
import Sginup from "./Pages/sginup/Sginup";
import Addblog from "./Addblog";
import User from "./Components/User";
import Showblogs from "./Showblogs";
function App() {
var check = window.localStorage.getItem('isLogedin')
return (
<>
<div>
<BrowserRouter>
{/* <Navbar /> */}
<Navbar />
<Routes>
<Route path="/Sginup" element = {<Sginup /> }/>
<Route path="/Login" element={ <Login /> } />
<Route path="/Addblog" element={ <Addblog/> } />
<Route path="/Showblogs" element={ <Showblogs/> } />
</Routes>
</BrowserRouter>
</div>
</>
);
}
export default App;