JSFiddle - React, Tailwind, and code Playground
HTML
<button id="click">Click Me</button>
JavaScript
var count = 0;
$(function(){
$("#click").mousedown(function(e){
$(this).after("<br/>" + ++count + ". type:" + e.type + "; which:" + e.which + "; button:" + e.button);
}).click(function(e){
$(this).after("<br/><br/>" + ++count + ". type:" + e.type + "; which:" + e.which + "; button:" + e.button);
});
});