| 1 | /** @jsxImportSource react */ |
| 2 | "use client"; |
| 3 | |
| 4 | import { useState } from "react"; |
| 5 | |
| 6 | export function Component() { |
| 7 | const [count, setCount] = useState(0); |
| 8 | |
| 9 | return ( |
| 10 | <main> |
| 11 | <h1>About</h1> |
| 12 | <p>This client route verifies the client environment is still emitted.</p> |
| 13 | <button onClick={() => setCount((c) => c + 1)}> |
| 14 | Client counter: {count} |
| 15 | </button> |
| 16 | </main> |
| 17 | ); |
| 18 | } |