JSFiddle - React, Tailwind, and code Playground

HTML

<div id="clickme">click</div>

JavaScript

$('#clickme').mousedown(function(event) {
    if(event.which==3) {
            alert('Right mouse button pressed');
    }
});