JSFiddle - React, Tailwind, and code Playground
by dorathoto
HTML
<div><img src="https://abcdxxtt-ddasdfasdf.com/non_exists.jpg"
border="1" height="100" alt="image" onerror="ImgError(this)" /></div>
JavaScript
function ImgError(source){
source.src = "https://asociacionafide.com/wp-content/uploads/2018/10/nofoto.jpg";
source.onerror = "";
return true;
}