JSFiddle - React, Tailwind, and code Playground
HTML
<div class="one_post">Click Here</div>
JavaScript
$(document).bind("contextmenu",function(e){
return false;
});
$('.one_post').mouseup(function() {
switch (event.which) {
case 1:
alert('Left');
break;
case 2:
alert('Middle');
break;
case 3:
alert('Right');
break;
}
});