import Counter from "$fresh/www/islands/Counter.tsx"; import { CodeBlock } from "$fresh/www/components/CodeBlock.tsx"; import { CodeWindow } from "$fresh/www/components/CodeWindow.tsx"; import { PageSection } from "$fresh/www/components/PageSection.tsx"; import { SideBySide } from "$fresh/www/components/SideBySide.tsx"; import { SectionHeading } from "$fresh/www/components/homepage/SectionHeading.tsx"; import { DemoBox } from "$fresh/www/components/homepage/DemoBox.tsx"; import { ExampleArrow } from "$fresh/www/components/homepage/ExampleArrow.tsx"; import { FancyLink } from "$fresh/www/components/FancyLink.tsx"; const islandCode = `import { useSignal } from "@preact/signals"; export default function Counter(props) { const count = useSignal(props.start); return (
The server supplied the initial value of {props.start}.
Fresh ships plain HTML to the client, and then hydrates with JavaScript only where needed.
Because it's{" "} Preact, you get best-in-class performance, plus the convenience of{" "} Signals .