import { useSignal } from "@preact/signals"; import { IS_BROWSER } from "$fresh/runtime.ts"; import { RoundedButton } from "../components/Button.tsx"; import * as Icons from "../components/Icons.tsx"; interface CounterProps { start: number; } export default function Counter(props: CounterProps) { const count = useSignal(props.start); return (
The server supplied the initial value of 3.