JSFiddle - React, Tailwind, and code Playground
HTML
<img src='http://static.jquery.com/files/rocker/images/logo_jquery_215x53.gif' onclick='document.write("Hi there!")' />
CSS
body {
background-color: #000;
}
img {
cursor: pointer;
}
JavaScript
$(document).ready(function() {
// Change the click handler
$('img').click(function() {
alert("Hi there!");
});
});