-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathApp.js
More file actions
33 lines (26 loc) · 810 Bytes
/
App.js
File metadata and controls
33 lines (26 loc) · 810 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
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import "./App.css";
import Home from "./components/home/home";
import NavBar from "./components/navbar/navbar";
import Signup from "./components/signup/Signup";
import Order from "./components/Order/Order";
import Footer from "./components/Footer";
import Login from "./components/Login/Login";
function App() {
return (
<>
<Router>
<NavBar />
<Switch>
<Route path="/" exact component={Home} />
<Route path='/signin' component={Signup} />
{/* define all the routes here */}
<Route path='/order' component={Order}/>
<Route path='/login' component={Login}/>
</Switch>
<Footer />
</Router>
</>
);
}
export default App;