Update to the new root creation function
This commit is contained in:
parent
ef6634a0c7
commit
9f5d0d42b7
1 changed files with 2 additions and 3 deletions
|
|
@ -25,7 +25,6 @@ import { createRoot } from 'react-dom/client';
|
||||||
import { Application } from './app.jsx';
|
import { Application } from './app.jsx';
|
||||||
import './app.scss';
|
import './app.scss';
|
||||||
|
|
||||||
document.addEventListener("DOMContentLoaded", function () {
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
const root = createRoot(document.getElementById('app'));
|
createRoot(document.getElementById("app")).render(<Application />);
|
||||||
root.render(<Application />);
|
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue