From ee787ece1804b27ebdfa147d5abed2763369d50d Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Wed, 23 Aug 2023 12:04:13 +0200 Subject: [PATCH] Use non-null assertion instead of type assertion in createRoot() --- test/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.tsx b/test/index.tsx index c355c52..db9d0c1 100644 --- a/test/index.tsx +++ b/test/index.tsx @@ -3,7 +3,7 @@ import { createRoot } from 'react-dom/client'; import Test from './Test.js'; -createRoot(document.getElementById('react-root') as HTMLDivElement).render( +createRoot(document.getElementById('react-root')!).render( , -- 2.51.2