Docs
Components
<Image />
<Image />
The <Image />
component preloads the specified image at the same time the page is loaded.
React
import { Image } from "exta/components";
export default function () {
return <Image src="/emoji.png" alt="Emoji"></Image>;
}
INFO
exta performs SSR only in production mode. Since the <Image />
component
preloads images to ensure that server-rendered HTML is displayed smoothly, its
effects can only be seen in production mode.