-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
28 lines (25 loc) · 766 Bytes
/
Copy pathApp.js
File metadata and controls
28 lines (25 loc) · 766 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
import React from 'react'
import Header from './component/Header'
import Footer from "./component/Footer"
import {BrowserRouter , Routes , Route} from "react-router-dom"
import Home from "./pages/Home"
import About from "./pages/About"
import Service from "./pages/Service"
import Trainer from "./pages/Trainer"
import Contact from "./pages/Contact"
const App = () => {
return (
<BrowserRouter>
<Header />
<Routes>
<Route path = "/" element= { <Home />} />
<Route path = "/about" element= { <About />} />
<Route path = "/service" element= { <Service />} />
<Route path = "/trainer" element= { <Trainer />} />
<Route path = "/contact" element= { <Contact />} />
</Routes>
<Footer />
</BrowserRouter>
)
}
export default App