title: React.JS - Disable Right Click in the full App But Enable it only in some pages
body: <p>I was trying to disable right-click for my full react app, but want to enable the right-click in some pages.</p>
  
  <pre class="lang-js prettyprint-override"><code>function handelRightClick(event) {
    event.preventDefault();
  }
  
  document.addEventListener('contextmenu', handelRightClick);
  </code></pre>
  
  <p>But I want to <code>removeEventListener</code> only if the user opens a particular page.</p>