Skip to content

Commit

Permalink
render the app with createRoot().render()
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourgreens committed Jun 24, 2024
1 parent 856fed3 commit 2850a4f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { render } from 'react-dom';
import { createRoot } from 'react-dom/client';
import { App } from './App';

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

0 comments on commit 2850a4f

Please sign in to comment.