JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<button id="click">Click Me</button>
</body>
</html>
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);
});
});