<html.img>
The <html.img>
component lets you render an image.
Overview
To display an image element, render the <html.img>
component.
import { html } from 'react-strict-dom';
const Foo = () => (
<html.img
loading="lazy"
onLoad={() => {}}
srcSet="https://srcSet-2x.jpg 2x"
/>
);
Props
- ...Common props
alt
crossOrigin
decoding
draggable
fetchPriority
height
loading
onError
onLoad
referrerPolicy
src
srcSet
width