JSFiddle - React, Tailwind, and code Playground
by Jeff Ward
HTML
<script>
function getImagePath() {
return "http://i.imgur.com/4ILisqH.jpg";
}
</script>
<!-- doesn't fire error event in FireFox -->
<img src onerror="this.onerror=null; this.src=getImagePath();">