fix(react): Fix updating to 18.0 root dom error

This commit is contained in:
2024-02-08 13:16:30 +01:00
parent f71c19d081
commit 7179ee2a87

View File

@@ -1,4 +1,4 @@
import { render } from 'react-dom'; import { createRoot } from 'react-dom/client';
import * as Sentry from '@sentry/react'; import * as Sentry from '@sentry/react';
import App from './App'; import App from './App';
@@ -24,4 +24,6 @@ Sentry.init({
autoSessionTracking: false, autoSessionTracking: false,
}); });
render(<App />, document.getElementById('root')); const container = document.getElementById('root');
const root = createRoot(container);
root.render(<App />);