We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0ed92c commit 4bf77b7Copy full SHA for 4bf77b7
sample/index.tsx
@@ -3,4 +3,4 @@ import { createRoot } from 'react-dom/client';
3
4
import Sample from './Sample.js';
5
6
-createRoot(document.getElementById('react-root') as HTMLDivElement).render(<Sample />);
+createRoot(document.getElementById('react-root')!).render(<Sample />);
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(
7
<StrictMode>
8
<Test />
9
</StrictMode>,
0 commit comments