JSFiddle - React, Tailwind, and code Playground
HTML
<button>BLAH</button>
JavaScript
document.getElementsByTagName('button')[0].onmousedown = function(e) {
if(e.which) {
alert(1); // original click
}
}
document.getElementsByTagName('button')[0].onmousedown();