diff --git a/frontend/package.json b/frontend/package.json index 2199022..3f7acce 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,7 @@ "prettier": "^2.8.3", "react": "^18.2.0", "react-dom": "^18.2.0", + "react-router-dom": "^6.7.0", "tailwindcss": "^3.2.4" }, "devDependencies": { diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 6abeeac..115716b 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -1,15 +1,15 @@ -import { useState } from "react"; import "./App.css"; import Nav from "./components/Nav"; +import { Outlet, useLoaderData } from "react-router-dom"; function App() { - const [count, setCount] = useState(0); + return ( <>
{/* {% load version %} */} {/* {% version %} ({% version_date %}) */} diff --git a/frontend/src/components/Nav.jsx b/frontend/src/components/Nav.jsx index b85921c..b81c171 100644 --- a/frontend/src/components/Nav.jsx +++ b/frontend/src/components/Nav.jsx @@ -1,16 +1,18 @@ +import { Link } from 'react-router-dom'; + function Nav() { return (