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