Skip to content

Commit

Permalink
added clicker to homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
tung-aiden committed Oct 30, 2024
1 parent 41014a4 commit 59c410b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
"use client";
import Navbar from "@/components/Navbar";
import { useState } from "react";

export default function Home() {
const [count, setCount] = useState(0);

return (
<main>
<Navbar />
<h1>Home</h1>
<h1>Aiden Tung Test Mock Project</h1>
<button onClick={() => setCount(count + 1)}>Click me</button>
<h1>Total clicks: {count}</h1>
<button onClick={() => setCount(0)}>Reset Count</button>
</main>
);
}

0 comments on commit 59c410b

Please sign in to comment.