From ffeb3c1ad4901f7586b78434e75fbd18336565ab Mon Sep 17 00:00:00 2001 From: Tom3201 Date: Thu, 12 Dec 2024 17:06:01 +0100 Subject: [PATCH] fix(index.tsx): adjust deprecated react-dom 19 functions --- src/index.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 54924c2..84843ae 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,10 +1,10 @@ import React from "react"; -import ReactDOM from "react-dom"; +import ReactDOM from "react-dom/client"; import App from "./app"; -ReactDOM.render( +const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement); +root.render( - , - document.getElementById("root"), + );