File size: 305 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
'use client'
import { useState } from 'react'
export function Counter() {
const [count, setCount] = useState(0)
return (
<div>
<p id="current-count">Count: {count}</p>
<button onClick={() => setCount(count + 1)} id="increase-count">
Increment
</button>
</div>
)
}
|