feat: add support for jsx precompile (#2035)

This commit is contained in:
Marvin Hagemeister
2023-11-13 12:06:55 +01:00
committed by GitHub
parent de631c3140
commit 0961e775db
11 changed files with 101 additions and 2 deletions
@@ -0,0 +1,13 @@
import { Head } from "$fresh/runtime.ts";
export default function Page() {
return (
<div>
<Head>
<title>foo</title>
<meta name="foo" content="bar" />
</Head>
<h1>Hello World</h1>
</div>
);
}
@@ -0,0 +1,10 @@
import Island from "../islands/Island.tsx";
export default function Home() {
return (
<div>
<h1>Hello World</h1>
<Island />
</div>
);
}