Skip to content

Commit 1695935

Browse files
Home logic works
1 parent 27066e3 commit 1695935

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎Frontend/src/pages/Home.tsx‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
1+
import { useNavigate } from "react-router-dom"
22

33
function Home() {
4+
const navigate = useNavigate()
45
return (
56
<div>
6-
<button>Login</button>
7-
<button>Get started</button>
7+
<button onClick={()=>navigate('/login')}>Login</button>
8+
<button onClick={()=>navigate("/signup")}>Get started</button>
89
</div>
910
)
1011
}

0 commit comments

Comments
 (0)