/** @jsx h */ import { h } from "preact"; import { useState } from "preact/hooks"; import { IS_BROWSER } from "$fresh/runtime.ts"; interface CounterProps { start: number; id: string; } export default function Counter(props: CounterProps) { const [count, setCount] = useState(props.start); return (
{count}