-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathApp.js
More file actions
27 lines (25 loc) · 1.01 KB
/
App.js
File metadata and controls
27 lines (25 loc) · 1.01 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
import React from "react";
import "./App.css";
import Texteditor from "./components/texteditor";
import NavHeader from "./components/nav-head";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import Login from "./components/Login";
import Register from './components/Register';
import Forget from "./components/Forget";
import ContactUs from "./components/contactus";
import Footer from "./components/footer";
function App() {
return ( <div className = "App">
<Router>
<Switch>
<Route path = "/forget"> <Forget /> </Route>
<Route path = "/login"> <Login /> </Route>
<Route path = "/register"> <Register /> </Route>
<Route path = "/contactus"> <ContactUs /> </Route>
<Route path = "/"> <NavHeader /> <Texteditor /> <Footer /> </Route>
</Switch>
</Router>
</div >
);
}
export default App;