21 lines
439 B
TypeScript
21 lines
439 B
TypeScript
import { useEffect, useState } from "preact/hooks";
|
|
import { Head } from "sweet/runtime";
|
|
|
|
export function HeadMeta() {
|
|
const [ready, setReady] = useState(false);
|
|
|
|
useEffect(() => {
|
|
setReady(true);
|
|
}, []);
|
|
|
|
return (
|
|
<div class={ready ? "ready" : "not-ready"}>
|
|
<Head>
|
|
<meta name="custom" content="ok" />
|
|
<meta name="custom-new" content="ok" />
|
|
</Head>
|
|
<h1>check meta</h1>
|
|
</div>
|
|
);
|
|
}
|