| 1 | "use client"; |
| 2 | |
| 3 | import React from "react"; |
| 4 | |
| 5 | export function Component() { |
| 6 | const [count, setCount] = React.useState(0); |
| 7 | |
| 8 | return ( |
| 9 | <main> |
| 10 | <h1>About</h1> |
| 11 | <p>This is the about page, rendered as a client component.</p> |
| 12 | <button className="counter" onClick={() => setCount((c) => c + 1)}> |
| 13 | Count is {count} |
| 14 | </button> |
| 15 | </main> |
| 16 | ); |
| 17 | } |