JSFiddle - React, Tailwind, and code Playground

by Garth Edwards

HTML

<div>
my image should be here :<br>
  <img class="cdn-image" data-photoid="1" src="https://www.qwerqwerqwerqewrqew.com/oldimage.jpg" onerror="imageErrorFunction(this);"/>
</div>

JavaScript

function imageErrorFunction(element){
	console.log('imageErrorFunction element: ', element);
}