JSFiddle - React, Tailwind, and code Playground

HTML

<button>BLAH</button>

JavaScript

$("button").mousedown( function(e) {
    if(e.which) {
        alert(1);
    }
});
$("button").trigger("mousedown");