title: Remove onclick react
body: <p>I have a div with onClick event. At a certain moment of the application I would like to remove that event. How can i do it?
  I tried with:</p>
  
  <pre><code>document.removeEventListener('click', this.function)
  document.removeEventListener('mousedown', this.function)
  </code></pre>