JSFiddle - React, Tailwind, and code Playground

by pessimism

HTML

<img
    class="image"
    src="image@1x.jpg"
    srcset="
        image@1x.jpg 1x,
        image@2x.jpg 2x,
        image@iphone1x.jpg 320w 1x,
        image@iphone2x.jpg 320w 2x
    "
    alt="Photo with support for iPhones and Retina"
/>

<p>When I load the page on my iPhone and copy the URL of the image, it gives me the fall-back image, <code>image@1x.jpg</code>.</p>

<p>I&rsquo;ve already tried putting all the code on one line without linebreaks.</p>

CSS

body { font-family: Georgia; }