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 aa654f3 commit 26c90c0Copy full SHA for 26c90c0
website/src/index.js
@@ -1,9 +1,11 @@
1
import 'process';
2
import React from 'react';
3
-import ReactDOM from 'react-dom';
+import * as ReactDOMClient from 'react-dom/client';
4
import App from './components/App';
5
-
6
import 'codemirror/lib/codemirror.css';
7
import './react-docgen.less';
8
9
-ReactDOM.render(<App />, document.getElementById('root'));
+const container = document.getElementById('root');
+const root = ReactDOMClient.createRoot(container);
10
+
11
+root.render(<App />);
0 commit comments