import { h, mount, activateIslands, createSignal } from "@getforma/core"; type AboutProps = { count: number }; function AboutCounter(props: AboutProps) { const [count, setCount] = createSignal(props.count); return ( setCount(count() + 2)} > Add two to About {() => count()} ); } function About(props: AboutProps) { return ( About The layout counter and note retain their state. This destination has its own compiled island. Server seed{" "} Render About from Rust Reset with a full document ); } activateIslands({ AboutCounter }); mount(() => About({ count: 0 }), "#app");
The layout counter and note retain their state. This destination has its own compiled island.
Reset with a full document