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
+24
View File
@@ -0,0 +1,24 @@
import '../App.css'
import {Link} from "react-router";
function Home() {
return (
<>
<div>
<h1>Home</h1>
</div>
<p>
ARFF ARFF BARK BARK
</p>
<Link to="/inventory">
<button>Inventory</button>
</Link>
</>
)
}
export default Home
+20
View File
@@ -0,0 +1,20 @@
import '../App.css'
function Inventory() {
return (
<>
<div>
<h1>Inventory</h1>
</div>
<p>
ARFF ARFF BARK BARK
</p>
</>
)
}
export default Inventory