X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=resources%2Fjs%2Findex.js;h=f4cda6137d0e355867373450e7d354fc88ed1d00;hb=fee2a910a23392383d7178e3fcb137c13fbc7add;hp=daa2bd5cf96091a5dbba0055d09c46e8b9c9dcd1;hpb=16662be0b3432d67307ae8c2bb798362d77bab99;p=alttp.git
diff --git a/resources/js/index.js b/resources/js/index.js
index daa2bd5..f4cda61 100644
--- a/resources/js/index.js
+++ b/resources/js/index.js
@@ -7,7 +7,7 @@
import './bootstrap';
import React from 'react';
-import ReactDOM from 'react-dom';
+import { createRoot } from 'react-dom/client';
import toastr from 'toastr';
toastr.options.positionClass = 'toast-bottom-right';
@@ -21,5 +21,6 @@ toastr.options.positionClass = 'toast-bottom-right';
import App from './app';
if (document.getElementById('react-root')) {
- ReactDOM.render(, document.getElementById('react-root'));
+ const root = createRoot(document.getElementById('react-root'));
+ root.render();
}