Files
sweet/packages/fresh/tests/fixture_head/islands/MultiHeadA.tsx
T
a79b155e79 fix: make <Head> work in client (#3252)
Closes #3310

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 21:21:39 +02:00

20 lines
403 B
TypeScript

import { useEffect, useState } from "preact/hooks";
import { Head } from "fresh/runtime";
export function MultiHeadA() {
const [ready, setReady] = useState(false);
useEffect(() => {
setReady(true);
}, []);
return (
<div class={ready ? "ready-a" : ""}>
<Head>
<title>from island A</title>
<meta name="author" content="island-a" />
</Head>
</div>
);
}