I have switched to React 18 and followed official guide on how to change root's render method.
Here is my root's render code:
import { createRoot } from 'react-dom/client';
const root = createRoot(document.getElementById('root') as any);
root.render(<App />);
Both react and react-dom are ^18.0.0.
App is throwing this:
