From b19148ad8f41c8177f44d063e1f90b2277647adf Mon Sep 17 00:00:00 2001 From: m-tartari <37861893+m-tartari@users.noreply.github.com> Date: Mon, 22 Jan 2024 18:45:02 +0100 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(App):=20make=20ex?= =?UTF-8?q?plicit=20root=20element?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.tsx b/src/main.tsx index 8e95cd9..7a4ba49 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -7,7 +7,8 @@ import App from './App.tsx' import theme from 'style/theme.ts' import './index.css' -ReactDOM.createRoot(document.getElementById('root')!).render( +const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement) +root.render(