import { useState } from "preact/hooks"; import { Button } from "@/components/Button.tsx"; interface CounterProps { start: number; } export default function Counter(props: CounterProps) { const [count, setCount] = useState(props.start); return (
{count}