--- layout: layout.html title: Preact Islands ---

is-land using IndieWeb avatar for https://preactjs.com/Preact

Scroll down


Client-rendered Preact

Example from https://preactjs.com/guide/v10/getting-started#no-build-tools-route

{% assign componentHydration = "./lib/preact/preact-component.js" | preact %}

Server-rendered Preact (SSR)

No hydration, HTML only

Without hydration, the island is unnecessary.

{% assign component = "./lib/preact/preact-component-html-only.js" | preact %} {{ component.html }}

With Hydration

{{ componentHydration.html }}