Files
sweet/packages/fresh/tests/fixture_head/routes/_app.tsx
T
Marvin Hagemeister 1daca75489 feat: bring back <Head> component (#3249)
This PR brings back the `<Head>` component from Fresh 1.x . The
implementation is much cleaner than back then and also works client-side
now too.
2025-08-25 15:40:47 +02:00

23 lines
582 B
TypeScript

import type { PageProps } from "@fresh/core";
export default function Page({ Component }: PageProps) {
return (
<html lang="en">
<head>
<meta charset="utf-8" />
<title>not ok</title>
<meta name="foo" content="not ok" />
<meta name="bar" content="not ok" />
<style>not ok</style>
<style id="style-id">not ok</style>
<template key="a">not ok</template>
<template key="b">not ok</template>
<template>not ok</template>
</head>
<body>
<Component />
</body>
</html>
);
}