diff options
author | crupest <crupest@outlook.com> | 2023-07-10 16:34:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2023-07-10 16:34:09 +0800 |
commit | 158b467fff07981b43af81f6520d3dba06baeffa (patch) | |
tree | c24d0e32fc09d3e94849812de977b517760cda95 /FrontEnd/src/index.tsx | |
parent | 4363f625025edeb19fb480a00e2e3b460c6091a9 (diff) | |
download | timeline-158b467fff07981b43af81f6520d3dba06baeffa.tar.gz timeline-158b467fff07981b43af81f6520d3dba06baeffa.tar.bz2 timeline-158b467fff07981b43af81f6520d3dba06baeffa.zip |
Run react-codemod update-react-imports
Diffstat (limited to 'FrontEnd/src/index.tsx')
-rw-r--r-- | FrontEnd/src/index.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/FrontEnd/src/index.tsx b/FrontEnd/src/index.tsx index f14cfa8e..a087fb8a 100644 --- a/FrontEnd/src/index.tsx +++ b/FrontEnd/src/index.tsx @@ -2,7 +2,7 @@ import "regenerator-runtime"; import "core-js/modules/es.promise"; import "core-js/modules/es.array.iterator"; -import React from "react"; +import { StrictMode } from "react"; import { createRoot } from "react-dom/client"; import "./index.css"; @@ -17,7 +17,7 @@ const container = document.getElementById("app"); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const root = createRoot(container!); root.render( - <React.StrictMode> + <StrictMode> <App /> - </React.StrictMode> + </StrictMode> ); |