import { h, mount, activateIslands, createSignal } from "@getforma/core"; type AboutProps = { count: number }; function AboutCounter(props: AboutProps) { const [count, setCount] = createSignal(props.count); return (
{() => count()}
); } function About(props: AboutProps) { return (

About

The layout counter and note retain their state. This destination has its own compiled island.

Reset with a full document

); } activateIslands({ AboutCounter }); mount(() => About({ count: 0 }), "#app");