Updating index.tsx to reflect changes between React 17 and 18.
This commit is contained in:
parent
f20e082697
commit
1f53fbd3be
|
@ -1,11 +1,9 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
|
||||||
|
|
||||||
import App from './App';
|
import App from './App';
|
||||||
|
|
||||||
ReactDOM.render(
|
import { createRoot } from 'react-dom/client';
|
||||||
<React.StrictMode>
|
|
||||||
<App />
|
const container = document.getElementById('root');
|
||||||
</React.StrictMode>,
|
const root = createRoot(container!);
|
||||||
document.getElementById('root')
|
root.render(<App />);
|
||||||
);
|
|
||||||
|
|
Loading…
Reference in New Issue