JSFiddle - React, Tailwind, and code Playground
HTML
<img id="vstar" src="http://1.bp.blogspot.com/-5Nwdd99-_Ko/T5l_1hXPVmI/AAAAAAAACdM/K5mNq3R4Jm4/s1600/google_logo_halloween.jpg"onclick="say('Vroom vroom!');"/>
<div id="console"></div>
JavaScript
$(function(){
$('#vstar')[0].onmouseover = function(event) {
say('Whee!');
}
function say(text) {
$('#console').append('<div>'+new Date()+''+text+'</div>');
}
});