JSFiddle - React, Tailwind, and code Playground

HTML

<img alt="image" />

CSS

x red; }

JavaScript

$('img').bind('error',function()  {
              alert('error');
              });
$('img').bind('hover',function()
              {
              alert('hovered');
              });
     $.each($("img").data("events"), function(e, event) {
       $.each(event, function(a, obj) {
        console.log(obj.type,"-",obj.handler);
     });
    });