diff options
author | crupest <crupest@outlook.com> | 2022-04-30 23:19:10 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-04-30 23:19:10 +0800 |
commit | 6088b428767abfc51998ca8b7f6b5f6994e9ff3b (patch) | |
tree | 6bf7985bf6216f53abdc7d0f73f7768df9180820 /FrontEnd/src/index.tsx | |
parent | 7c2148159e1cba4db5ef5775765e2c74946a9596 (diff) | |
download | timeline-6088b428767abfc51998ca8b7f6b5f6994e9ff3b.tar.gz timeline-6088b428767abfc51998ca8b7f6b5f6994e9ff3b.tar.bz2 timeline-6088b428767abfc51998ca8b7f6b5f6994e9ff3b.zip |
...
Diffstat (limited to 'FrontEnd/src/index.tsx')
-rw-r--r-- | FrontEnd/src/index.tsx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/FrontEnd/src/index.tsx b/FrontEnd/src/index.tsx index 833e2ab8..ea940004 100644 --- a/FrontEnd/src/index.tsx +++ b/FrontEnd/src/index.tsx @@ -4,7 +4,7 @@ import "core-js/modules/es.array.iterator"; import "pepjs"; import React from "react"; -import ReactDOM from "react-dom"; +import { createRoot } from "react-dom/client"; import "./index.css"; @@ -14,4 +14,7 @@ import "./service-worker"; import App from "./App"; -ReactDOM.render(<App />, document.getElementById("app")); +const container = document.getElementById("app"); +// eslint-disable-next-line @typescript-eslint/no-non-null-assertion +const root = createRoot(container!); +root.render(<App />); |