Skip to content

Commit

Permalink
use createRoot for bootstrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
suren-atoyan committed Oct 6, 2023
1 parent bc4b241 commit f05dce8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions playground/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import App from './App';

import './global.css';

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

root.render(<App />);

0 comments on commit f05dce8

Please sign in to comment.