mirror of
https://github.com/mue/mue.git
synced 2026-06-12 03:28:46 +02:00
fix(react): Fix updating to 18.0 root dom error
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { render } from 'react-dom';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import * as Sentry from '@sentry/react';
|
||||
|
||||
import App from './App';
|
||||
@@ -24,4 +24,6 @@ Sentry.init({
|
||||
autoSessionTracking: false,
|
||||
});
|
||||
|
||||
render(<App />, document.getElementById('root'));
|
||||
const container = document.getElementById('root');
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
|
||||
Reference in New Issue
Block a user