import Counter from "../../islands/Counter.tsx"; import { CodeBlock } from "../../components/CodeBlock.tsx"; import { CodeWindow } from "../../components/CodeWindow.tsx"; import { PageSection } from "../../components/PageSection.tsx"; import { SideBySide } from "../../components/SideBySide.tsx"; import { SectionHeading } from "../../components/homepage/SectionHeading.tsx"; import { DemoBox } from "../../components/homepage/DemoBox.tsx"; import { ExampleArrow } from "../../components/homepage/ExampleArrow.tsx"; import { FancyLink } from "../../components/FancyLink.tsx"; const islandCode = `import { useSignal } from "@preact/signals"; export default function Counter(props) { const count = useSignal(props.start); return (

Interactive island

The server supplied the initial value of {props.start}.

{count}
); }`; export function IslandsSection() { return (
Interactive where it matters

Most of your page is static HTML. Islands are the small, interactive parts that get hydrated with JavaScript. You choose exactly what runs on the client.

Built on{" "} Preact and {" "} Signals , so islands are tiny and reactive out of the box.

Learn more about islands
); }