JSFiddle - React, Tailwind, and code Playground

by Kawaljit Singh

HTML

<img src="" onerror="myFunc(event)" />

JavaScript

function myFunc(event) {
  event.target.style.display = 'none';
}