-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
27 lines (24 loc) · 974 Bytes
/
Copy pathApp.jsx
File metadata and controls
27 lines (24 loc) · 974 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
import { BrowserRouter, Routes, Route } from "react-router-dom";
import HomePage from "./pages/homepage/index.jsx";
import About from "./pages/about/index.jsx";
import Gallery from "./pages/gallery/index.jsx";
import Announcements from "./pages/announcements/index.jsx";
import Blog from "./pages/blog/index.jsx";
import BlogDetail from "./components/detail.jsx";
import './App.css'
import './index.css'
function App() {
return (
<BrowserRouter future={{ v7_startTransition: true, v7_relativeSplatPath: true }}>
<Routes>
<Route path="/" element={<HomePage />} />
<Route path="/about-us" element={<About/>} />
<Route path="/gallery" element={<Gallery />} />
<Route path="/announcements" element={<Announcements />} />
<Route path="/blog" element={<Blog />} />
<Route path="/blog/:id" element={<BlogDetail />} />
</Routes>
</BrowserRouter>
);
}
export default App;