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.
12 lines
271 B
TypeScript
12 lines
271 B
TypeScript
import { IS_BROWSER } from "$fresh/runtime.ts";
|
|
import Test from "../islands/Test.tsx";
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div>
|
|
<Test message="Hello!" />
|
|
<p>{IS_BROWSER ? "Viewing browser render." : "Viewing JIT render."}</p>
|
|
</div>
|
|
);
|
|
}
|