From b8950dde09cb41eac5dba40ae034abf7a5e6bdb2 Mon Sep 17 00:00:00 2001
From: Muhamed <unknown>
Date: Sat, 27 May 2023 01:32:44 +0530
Subject: update react version to 18.2.0 and it related changes

---
 src/app.tsx | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

(limited to 'src/app.tsx')

diff --git a/src/app.tsx b/src/app.tsx
index 4782bb778..4d4100c40 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -1,6 +1,6 @@
 import { webFrame } from 'electron';
 
-import { render } from 'react-dom';
+import { createRoot } from 'react-dom/client';
 import { Provider } from 'mobx-react';
 import { RouterStore } from '@superwf/mobx-react-router';
 import { createHashHistory } from 'history';
@@ -44,7 +44,9 @@ window.addEventListener('load', () => {
           </I18N>
         </Provider>
       );
-      render(preparedApp, document.querySelector('#root'));
+      const container = document.querySelector('#root');
+      const root = createRoot(container!);
+      root.render(preparedApp);
     },
   };
   window['ferdium'].render();
-- 
cgit v1.2.3-70-g09d2

