There was an error while loading. Please reload this page.
1 parent 27066e3 commit 1695935Copy full SHA for 1695935
Frontend/src/pages/Home.tsx
@@ -1,10 +1,11 @@
1
-
+import { useNavigate } from "react-router-dom"
2
3
function Home() {
4
+ const navigate = useNavigate()
5
return (
6
<div>
- <button>Login</button>
7
- <button>Get started</button>
+ <button onClick={()=>navigate('/login')}>Login</button>
8
+ <button onClick={()=>navigate("/signup")}>Get started</button>
9
</div>
10
)
11
}
0 commit comments