From f8d8ff781dc78a09c0f455313bf1782eb4fba962 Mon Sep 17 00:00:00 2001
From: realtradam <github@tradam.dev>
Date: Thu, 27 Jun 2024 17:03:05 -0400
Subject: add react router

---
 react-frontend/src/routes/index.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 react-frontend/src/routes/index.tsx

(limited to 'react-frontend/src/routes/index.tsx')

diff --git a/react-frontend/src/routes/index.tsx b/react-frontend/src/routes/index.tsx
new file mode 100644
index 0000000..5fcae2b
--- /dev/null
+++ b/react-frontend/src/routes/index.tsx
@@ -0,0 +1,16 @@
+import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
+import Home from "../pages/Home";
+import Layout from "../components/Layout";
+
+export default function Index()
+{
+	return (<>
+				<Router>
+					<Routes>
+						<Route path="/" element = {<Layout/>}>
+							<Route index element={<Home />} />
+						</Route>
+					</Routes>
+				</Router>
+			</>);
+}
-- 
cgit v1.2.3

