X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;ds=inline;f=resources%2Fjs%2Findex.js;h=f4cda6137d0e355867373450e7d354fc88ed1d00;hb=ac4ef598bf174ff342a261787ba6e9555003cbbb;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();
}