import { h, mount, activateIslands, createSignal } from "@getforma/core"; type ShellProps = { count: number }; function LayoutCounter(props: ShellProps) { const [count, setCount] = createSignal(props.count); return ( setCount(count() + 1)}> Increment layout {() => count()} Layout note{" "} ); } function Shell(props: ShellProps) { return ( forma-native-router-example Home About ); } activateIslands({ LayoutCounter }); // Native compilation selects Shell and removes this mount from browser code. mount(() => Shell({ count: 0 }), "#app");
forma-native-router-example