import { useSignal } from "@preact/signals"; import * as Icons from "../components/Icons.tsx"; import type { JSX } from "preact"; interface CounterProps { start: number; } export default function Counter(props: CounterProps) { const count = useSignal(props.start); return (

Interactive island

The server supplied the initial value of 3.

count.value -= 1} >
{count}
count.value += 1} >
); } function RoundedButton(props: JSX.HTMLAttributes) { return (