I built an app where I needed to prevent users from right clicking on the UI.
// Prevent Right Clicking
const contextMenu = (e) => {
e.preventDefault();
//addMenu.popup(e.clientX, e.clientY);
}
return (
<div className="App" onContextMenu={ contextMenu } >
...