Files
sweet/packages/fresh/tests/fixture_head/islands/LinkIsland.tsx
T
2026-11-11 11:45:20 -03:00

19 lines
377 B
TypeScript

import { useEffect, useState } from "preact/hooks";
import { Head } from "sweet/runtime";
export function LinkIsland() {
const [ready, setReady] = useState(false);
useEffect(() => {
setReady(true);
}, []);
return (
<div class={ready ? "ready" : ""}>
<Head>
<link rel="canonical" href="https://example.com/ok" />
</Head>
</div>
);
}