Skip to content

Commit f990253

Browse files
committed
Update demo app to React 18
1 parent 8e8ffa6 commit f990253

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

demo/index.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import React from 'react'
2-
import ReactDOM from 'react-dom'
2+
import { createRoot } from 'react-dom/client'
33
import App from './App'
44

5-
ReactDOM.render(<App />, document.getElementById('app'))
5+
const container = document.getElementById('app')
6+
const root = createRoot(container)
7+
root.render(<App />)

0 commit comments

Comments
 (0)