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.
11 lines
198 B
TypeScript
11 lines
198 B
TypeScript
import { asset } from "$fresh/runtime.ts";
|
|
|
|
export default function StaticPage() {
|
|
return (
|
|
<div>
|
|
<p>This is a static page.</p>
|
|
<img src={asset("/image.png")} />
|
|
</div>
|
|
);
|
|
}
|