title: React 18 displays ReactDOM.render warning even though I switched to the new standard
body: <p>I have switched to React 18 and followed official guide on how to change root's render method.</p>
  <p>Here is my root's render code:</p>
  <pre><code>import { createRoot } from 'react-dom/client';
  
  const root = createRoot(document.getElementById('root') as any);
  root.render(&lt;App /&gt;);
  </code></pre>
  <p>Both <code>react</code> and <code>react-dom</code> are <code>^18.0.0</code>.</p>
  <p>App is throwing this:</p>
  <p><a href="https://i.stack.imgur.com/yKPkX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yKPkX.png" alt="enter image description here" /></a></p>