Files
sweet/tests/fixture/routes/assetsCaching/index.tsx
T
Luca Casonato b12867a582 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.
2022-08-26 11:03:00 +02:00

28 lines
645 B
TypeScript

import Test from "../../islands/Test.tsx";
export default function Home() {
return (
<div>
<div style={{ marginTop: 20 }}>img-with-hashing</div>
<img id="img-with-hashing" src="/image.png" height={130} />
<div style={{ marginTop: 20 }}>img-without-hashing</div>
<img
id="img-without-hashing"
src="/image.png"
data-fresh-disable-lock
height={130}
/>
<Test message="In island" />
<div style={{ marginTop: 20 }}>img-external</div>
<img
id="img-missing"
src="https://fresh.deno.dev/favicon.ico"
height={130}
/>
</div>
);
}