JSFiddle - React, Tailwind, and code Playground

JavaScript

$(document).ready(function(){ 
  //document.oncontextmenu = function() {return false;};

  $(document).mousedown(function(e){ 
      alert(e.button);
    if( e.button == 3 ) { //2 for Right Click, 3 for mouse wheel click
      alert('Right mouse button!'); 
      return false; 
    } 
    return true; 
  }); 
});