<p dir="auto">According to documentation <a href="https://reactjs.org/docs/test-utils.html#renderintodocument" rel="nofollow">https://reactjs.org/docs/test-utils.html#renderintodocument</a>, should be:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const domContainer = document.createElement('div');
ReactDOM.createRoot(domContainer).render(element);"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">domContainer</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'div'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">createRoot</span><span class="pl-kos">(</span><span class="pl-s1">domContainer</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">element</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">but is ReactDOM.render<br>
</p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/facebook/react/blob/2cf4352e1c81a5b8c3528519a128c20e8e65531d/packages/react-dom/src/test-utils/ReactTestUtils.js#L137">react/packages/react-dom/src/test-utils/ReactTestUtils.js</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 137
      in
      <a data-pjax="true" class="commit-tease-sha" href="/facebook/react/commit/2cf4352e1c81a5b8c3528519a128c20e8e65531d">2cf4352</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L137" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="137"></td>
          <td id="LC137" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">element</span><span class="pl-kos">,</span> <span class="pl-s1">div</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></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>
(none)</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%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%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%20add%20node%20%20because%20a%20node%20with%20that%20id%20is%20already%20in%20the%20Store.%20in%3Atitle%20is%3Aissue%20is%3Aopen%20is%3Apublic%20label%3A%22Component%3A%20Developer%20Tools%22%20repo%3Afacebook%2Freact</a></p>