import { type Signal, useSignal } from "@preact/signals"; import { useEffect } from "preact/hooks"; export interface CounterProps { id?: string; count: Signal; } export function Counter(props: CounterProps) { const active = useSignal(false); useEffect(() => { active.value = true; }, []); return (

{props.count}

); }