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 type="button"
12 >
13 count: {count}
14 </button>
15 );
16}