Skip to content

Commit

Permalink
Update demo to use ReactDOM.createRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
ruipserra committed Apr 13, 2022
1 parent c6329da commit 6bc16ea
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react'
import ReactDOM from 'react-dom'
import { createRoot } from 'react-dom/client'
import App from './App'

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

0 comments on commit 6bc16ea

Please sign in to comment.