mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
17 lines
302 B
TypeScript
17 lines
302 B
TypeScript
'use client'
|
|
|
|
import { useState } from 'react'
|
|
|
|
export default function Page() {
|
|
const [count, setCount] = useState(0)
|
|
|
|
return (
|
|
<div>
|
|
<p id="count">Count: {count}</p>
|
|
<button id="increment" onClick={() => setCount((c) => c + 1)}>
|
|
Increment
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|