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 (
Island-based architecture

Fresh ships plain HTML to the client, then hydrates with JavaScript only where needed.

Because it's Preact, you get best-in-class performance, plus the convenience of{" "} Signals .

Learn more about islands
); }