<p dir="auto">React version: latest</p>
<h2 dir="auto">Steps To Reproduce</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function App() {
  return &lt;h1 onClick={console.log}&gt;h1&lt;/h1&gt;;
  // console.log is replaced by &quot;disableLog&quot; so I can't log any event.
  return &lt;h1 onClick={x =&gt; console.log(x)}&gt;h1&lt;/h1&gt;;
  // have to do this
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-v">App</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
  <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-c1">log</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>h1<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span>
  <span class="pl-c">// console.log is replaced by "disableLog" so I can't log any event.</span>
  <span class="pl-k">return</span> <span class="pl-c1">&lt;</span><span class="pl-ent">h1</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">x</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">x</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span>h1<span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">h1</span><span class="pl-c1">&gt;</span><span class="pl-kos">;</span>
  <span class="pl-c">// have to do this</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Previous discussion at <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="456518674" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/15894" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/15894/hovercard?comment_id=668542243&amp;comment_type=issue_comment" href="https://github.com/facebook/react/pull/15894#issuecomment-668542243">#15894 (comment)</a></p>
<h3 dir="auto">Which website or app were you using when the bug happened?</h3>
<p dir="auto">Please provide a link to the URL of the website (if it is public), a CodeSandbox (<a href="https://codesandbox.io/s/new" rel="nofollow">https://codesandbox.io/s/new</a>) example that reproduces the bug, or a project on GitHub that we can checkout and run locally.</p>
<h3 dir="auto">What were you doing on the website or app when the bug happened?</h3>
<p dir="auto">If possible, please describe how to reproduce this bug on the website or app mentioned above:</p>
<ol dir="auto">
<li>

</li>
<li>

</li>
<li>

</li>
</ol>



<h3 dir="auto">Generated information</h3>
<p dir="auto">DevTools version: 4.13.1-93782cfed2</p>
<p dir="auto">Call stack:<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:21499:43<br>
at bridge_Bridge.emit (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19607:22)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19767:12<br>
at listener (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:37788:39)</p>
<p dir="auto">Component stack:<br>
(none)</p>
<p dir="auto">GitHub URL search query:<br>
<a href="https://api.github.com/search/issues?q=Cannot%20remove%20node%20%20because%20no%20matching%20node%20was%20found%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact">https://api.github.com/search/issues?q=Cannot%20remove%20node%20%20because%20no%20matching%20node%20was%20found%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact</a></p>