From 77c53b0b3f8dd75e8d42ad3bf26219ef07a8a3f3 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sat, 23 Apr 2022 12:06:00 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"refactor(ui):=20=E2=99=BB=EF=B8=8F=20?= =?UTF-8?q?use=20new=20createRoot"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a1f5cfe04fdaaaf88421fdba3619acc27d3183f6. --- web/src/index.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/web/src/index.tsx b/web/src/index.tsx index 079f7c698..dcc257fe2 100644 --- a/web/src/index.tsx +++ b/web/src/index.tsx @@ -1,16 +1,14 @@ import React from "react"; -import ReactDOM from "react-dom/client"; -import "./index.css"; +import ReactDOM from "react-dom"; import { App } from "./App"; +import "./index.css"; import reportWebVitals from "./reportWebVitals"; -const root = ReactDOM.createRoot( - document.getElementById("root") as HTMLElement -); -root.render( +ReactDOM.render( - + , + document.getElementById("root") ); // If you want to start measuring performance in your app, pass a function