Made router work

This commit is contained in:
2025-01-11 21:25:17 -06:00
parent 1ebbb16677
commit 643b8cfbcc
6 changed files with 40 additions and 12 deletions
+9 -10
View File
@@ -1,21 +1,20 @@
import './App.css'
import { Link } from 'react-router-dom';
import { Routes, Route} from 'react-router';
import Home from './pages/home.tsx';
import Inventory from "./pages/inventory.tsx";
function App() {
return (
<>
<div>
<h1>BarkMan</h1>
</div>
<p>
ARFF ARFF BARK BARK
</p>
<Routes>
<Route index element={<Home />} />
<Route path="inventory" element={<Inventory />} />
</Routes>
<Link to="/inventory">
<button>Inventory</button>
</Link>
</>
)
}