@scroft001
Posted
- You can use the <picture> tag when you have different versions of the same image. Using the <picture> tag will help you to load the correct image for the user's device saving bandwidth and improving performance.
<picture>
<source media="(max-width: 460px)" srcSet={mobileImage} />
<img src={desktopImage} alt="{your alt text goes here}" />
</picture>
Marked as helpful