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 1d9e520 commit ed4888aCopy full SHA for ed4888a
website/index.tsx
@@ -1,5 +1,6 @@
1
-import React from 'react';
2
-import ReactDOM from 'react-dom';
3
import App from './App';
+import { createRoot } from 'react-dom/client';
4
5
-ReactDOM.render(<App />, document.getElementById('root'));
+const container = document.getElementById('root');
+const root = createRoot(container!);
6
+root.render(<App />);
0 commit comments