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 './app.scss';
|
||||
|
||||
document.addEventListener("DOMContentLoaded", function () {
|
||||
const root = createRoot(document.getElementById('app'));
|
||||
root.render(<Application />);
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
createRoot(document.getElementById("app")).render(<Application />);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue