From 6088b428767abfc51998ca8b7f6b5f6994e9ff3b Mon Sep 17 00:00:00 2001
From: crupest <crupest@outlook.com>
Date: Sat, 30 Apr 2022 23:19:10 +0800
Subject: ...

---
 FrontEnd/src/index.tsx | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

(limited to 'FrontEnd/src/index.tsx')

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 />);
-- 
cgit v1.2.3

