t3-code-android-nightly/.repos/alchemy-effect/examples/cloudflare-website-vinext/app/components/Counter.tsx
Julius Marminge 6f9cea00ae
chore(refs): sync Effect and Alchemy references to 4.0.1 and beta.80 (#16170)
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-05 13:22:30 -07:00

21 lines
503 B
TypeScript

"use client";
import { useState } from "react";
export function Counter() {
const [count, setCount] = useState(0);
return (
<div className="mt-4">
<p data-testid="count">Count: {count}</p>
<button
className="mt-2 rounded-md border border-slate-200 bg-white px-3 py-1.5 text-sm text-slate-900 hover:bg-slate-50"
data-testid="increment"
type="button"
onClick={() => setCount((c) => c + 1)}
>
Increment
</button>
</div>
);
}