Add separate AppRouter component

This commit is contained in:
Alex Gleason committed 2025-04-17 16:55:49 -05:00
1 parent b5d517e358
commit 8407a2e268
2 files changed
+36 -22

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
import { BrowserRouter, Route, Routes } from "react-router-dom";
import Index from "./pages/Index";
import NotFound from "./pages/NotFound";
export function AppRouter() {
return (
<BrowserRouter>
<Routes>
<Route path="/" element={<Index />} />
{/* ADD ALL CUSTOM ROUTES ABOVE THE CATCH-ALL "*" ROUTE */}
<Route path="*" element={<NotFound />} />
</Routes>
</BrowserRouter>
);
}
export default AppRouter;