JSFiddle - React, Tailwind, and code Playground
HTML
<svg height="300">
<image xlink:href="http://via.placeholder.com/200x300" width="200" height="300" onerror="alert('image load error')" onload="alert('loaded image')" />
</svg>
<svg height="300">
<image xlink:href="http://via.placeholder.com/200x300" width="200" height="300" onerror="alert('image load error')" onload="alert('loaded image')" />
</svg>