Skip to content

Commit

Permalink
Swap ReactDOM.render with React client createRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanPak committed Sep 10, 2024
1 parent 334b9fd commit ea6639e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/site/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import { App } from './components/App';

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

0 comments on commit ea6639e

Please sign in to comment.