diff options
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/index.tsx b/src/index.tsx index c1a4211..d239501 100644 --- a/src/index.tsx +++ b/src/index.tsx | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | import * as React from "react"; | 1 | import * as React from "react"; |
| 2 | import * as ReactDOM from "react-dom"; | 2 | import { createRoot } from "react-dom/client"; |
| 3 | import App from "~/components/App/App"; | 3 | import App from "~/components/App/App"; |
| 4 | 4 | ||
| 5 | import "~/index.scss"; | 5 | import "~/index.scss"; |
| @@ -10,11 +10,10 @@ import localizedFormat from "dayjs/plugin/localizedFormat"; | |||
| 10 | import ConnectionProvider from "~/contexts/Connection"; | 10 | import ConnectionProvider from "~/contexts/Connection"; |
| 11 | dayjs.extend(localizedFormat); | 11 | dayjs.extend(localizedFormat); |
| 12 | 12 | ||
| 13 | ReactDOM.render( | 13 | createRoot(document.getElementById("root")).render( |
| 14 | <SettingsProvider> | 14 | <SettingsProvider> |
| 15 | <ConnectionProvider> | 15 | <ConnectionProvider> |
| 16 | <App /> | 16 | <App /> |
| 17 | </ConnectionProvider> | 17 | </ConnectionProvider> |
| 18 | </SettingsProvider>, | 18 | </SettingsProvider> |
| 19 | document.getElementById("root") | ||
| 20 | ); | 19 | ); |
