JSFiddle - React, Tailwind, and code Playground
HTML
<p id="info">Click on the image and hold</p>
<img src="http://www.google.com/images/srpr/logo3w.png" />
<p id="log"></p>
CSS
#log {color: #f00;}
JavaScript
$(document).on('mousedown', function() {
$('#info').text('Now move the mouse and then release');
$('#log').text('mouse down fired');
}).on('mouseup', function() {
$('#log').text('mouse up fired');
});