feat: add support for <Head> component (#67)
This component only works during SSR, during the inital render. It does not work on renders inside a suspense boundary, or client renders.
This commit is contained in:
+4
-1
@@ -1,11 +1,14 @@
|
||||
/** @jsx h */
|
||||
/** @jsxFrag Fragment */
|
||||
|
||||
import { Fragment, h, tw } from "../deps.ts";
|
||||
import { Fragment, h, Head, tw } from "../deps.ts";
|
||||
|
||||
export default function MainPage() {
|
||||
return (
|
||||
<>
|
||||
<Head>
|
||||
<title>fresh - The next-gen web framework.</title>
|
||||
</Head>
|
||||
<Hero />
|
||||
<NavigationBar active="/" />
|
||||
<Intro />
|
||||
|
||||
Reference in New Issue
Block a user