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