feat: automatically apply asset caching to img src and srcset (#184)
This commit is contained in:
@@ -1,12 +1,17 @@
|
||||
/** @jsx h */
|
||||
|
||||
import { asset, h } from "../client_deps.ts";
|
||||
import { h } from "../client_deps.ts";
|
||||
|
||||
export default function Test(props: { message: string }) {
|
||||
return (
|
||||
<div>
|
||||
<p>{props.message}</p>
|
||||
<img src={asset("/image.png")} />
|
||||
<img
|
||||
id="img-in-island"
|
||||
src="/image.png"
|
||||
srcset="/image.png 1x"
|
||||
height={130}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user