Skip to content

Commit

Permalink
fix: new react 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Apr 4, 2022
1 parent dc67829 commit c8ca7f7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';

import { App } from './App';

import 'styles/global.scss';

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

const root = createRoot(container);

root.render(<App />);

0 comments on commit c8ca7f7

Please sign in to comment.