Skip to content

Commit

Permalink
refactor: use createRoot() API
Browse files Browse the repository at this point in the history
  • Loading branch information
3c1u committed Apr 1, 2022
1 parent c11588f commit c2363ff
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import * as React from 'react'
import * as ReactDOM from 'react-dom'
import * as ReactDOM from 'react-dom/client'
import { App } from './App'

const root = document.getElementById('root')
ReactDOM.render(<App />, root)
const reactRoot = ReactDOM.createRoot(root)
reactRoot.render(<App />)

0 comments on commit c2363ff

Please sign in to comment.