| 1 | 'use client'; |
| 2 | |
| 3 | import React from 'react'; |
| 4 | |
| 5 | export function ClickCounter() { |
| 6 | const [count, setCount] = React.useState(0); |
| 7 | |
| 8 | return ( |
| 9 | <button |
| 10 | onClick={() => setCount(count + 1)} |
| 11 | className="whitespace-nowrap rounded-lg bg-gray-700 px-3 py-1 text-sm font-medium tabular-nums text-gray-100 hover:bg-gray-500 hover:text-white" |
| 12 | > |
| 13 | {count} Clicks |
| 14 | </button> |
| 15 | ); |
| 16 | } |