feat: support JSX automatic mode (#610)
This commit adds support for JSX automatic mode instead of the default mode that requires the presence of the JSX pragma in each file. This commit also adds the config file to the `fresh.gen.ts` manifest, which is used to determine if the client emit should use automatic mode. The minimum Deno version has also been bumped to 1.25.0.
This commit is contained in:
+2
-5
@@ -1,13 +1,10 @@
|
||||
/** @jsx h */
|
||||
/** @jsxFrag Fragment */
|
||||
import { Fragment, h } from "preact";
|
||||
import LemonDrop from "../islands/LemonDrop.tsx";
|
||||
|
||||
export function ServerCodePage(
|
||||
props: { serverCode: number; codeDescription: string },
|
||||
) {
|
||||
return (
|
||||
<Fragment>
|
||||
<>
|
||||
<section>
|
||||
<div class="w-full flex justify-center items-center flex-col bg-green-300">
|
||||
<LemonDrop />
|
||||
@@ -26,7 +23,7 @@ export function ServerCodePage(
|
||||
</p>
|
||||
</div>
|
||||
</section>
|
||||
</Fragment>
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user