Update to the new root creation function

This commit is contained in:
Justin Stephenson 2023-07-19 13:19:30 -04:00
parent ef6634a0c7
commit 9f5d0d42b7

View file

@ -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 />);
});