diff options
author | 2023-05-27 01:32:44 +0530 | |
---|---|---|
committer | 2023-05-27 18:10:24 +0530 | |
commit | b8950dde09cb41eac5dba40ae034abf7a5e6bdb2 (patch) | |
tree | 978c1649cd8fc51adc1253b9934491237d3f9ffc /src/app.tsx | |
parent | Upgrade 'pnpm' to '8.5.1' (diff) | |
download | ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.gz ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.tar.zst ferdium-app-b8950dde09cb41eac5dba40ae034abf7a5e6bdb2.zip |
update react version to 18.2.0 and it related changes
Diffstat (limited to 'src/app.tsx')
-rw-r--r-- | src/app.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
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 @@ | |||
1 | import { webFrame } from 'electron'; | 1 | import { webFrame } from 'electron'; |
2 | 2 | ||
3 | import { render } from 'react-dom'; | 3 | import { createRoot } from 'react-dom/client'; |
4 | import { Provider } from 'mobx-react'; | 4 | import { Provider } from 'mobx-react'; |
5 | import { RouterStore } from '@superwf/mobx-react-router'; | 5 | import { RouterStore } from '@superwf/mobx-react-router'; |
6 | import { createHashHistory } from 'history'; | 6 | import { createHashHistory } from 'history'; |
@@ -44,7 +44,9 @@ window.addEventListener('load', () => { | |||
44 | </I18N> | 44 | </I18N> |
45 | </Provider> | 45 | </Provider> |
46 | ); | 46 | ); |
47 | render(preparedApp, document.querySelector('#root')); | 47 | const container = document.querySelector('#root'); |
48 | const root = createRoot(container!); | ||
49 | root.render(preparedApp); | ||
48 | }, | 50 | }, |
49 | }; | 51 | }; |
50 | window['ferdium'].render(); | 52 | window['ferdium'].render(); |