mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
Made router work
This commit is contained in:
+9
-10
@@ -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>
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user