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

forma-native-router-example

); } activateIslands({ LayoutCounter }); // Native compilation selects Shell and removes this mount from browser code. mount(() => Shell({ count: 0 }), "#app");