1"use client";
2
3import { useState } from "react";
4
5export function Counter() {
6 const [count, setCount] = useState(0);
7 return (
8 <button
9 data-testid="counter"
10 onClick={() => setCount((value) => value + 1)}
11 >
12 count: {count}
13 </button>
14 );
15}