mirror of https://github.com/mue/mue.git
fix(react): Fix updating to 18.0 root dom error
This commit is contained in:
parent
f71c19d081
commit
7179ee2a87
|
@ -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 />);
|
||||
|
|
Loading…
Reference in New Issue