JSFiddle - React, Tailwind, and code Playground

HTML

<img src="https://placehold.co/800x600/jpg"/>

CSS

img {
  height:auto;
  max-width:100%;
}