From 5f04829fd62949ab595f3b0bcf693049e0527d77 Mon Sep 17 00:00:00 2001 From: f0x Date: Fri, 16 Sep 2022 15:49:02 +0200 Subject: [PATCH] react 18 changes --- web/source/settings-panel/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/source/settings-panel/index.js b/web/source/settings-panel/index.js index 8083807bb..eec2ffab6 100644 --- a/web/source/settings-panel/index.js +++ b/web/source/settings-panel/index.js @@ -20,7 +20,7 @@ const Promise = require("bluebird"); const React = require("react"); -const ReactDom = require("react-dom"); +const ReactDom = require("react-dom/client"); const Redux = require("react-redux"); const { Switch, Route, Redirect } = require("wouter"); const { Provider } = require("react-redux"); @@ -174,4 +174,5 @@ function Main() { ); } -ReactDom.render(
, document.getElementById("root")); \ No newline at end of file +const root = ReactDom.createRoot(document.getElementById("root")); +root.render(
); \ No newline at end of file