JSFiddle - React, Tailwind, and code Playground
by m v
HTML
<body oncontextmenu="return false;">
Right click here...<br/><br/>
<button>Remove oncontextmenu</button>
</body>
JavaScript
$('button').click(function(){
$('body').removeAttr('oncontextmenu');
});