updating from react 17 -> 18

This commit is contained in:
Mose Müller 2023-08-02 12:06:19 +02:00
parent c664a0ba2f
commit 919f83c77e

View File

@ -1,12 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App'; import App from './App';
import { createRoot } from 'react-dom/client';
// Render the App component into the #root div // Render the App component into the #root div
ReactDOM.render( const container = document.getElementById('root');
<React.StrictMode> const root = createRoot(container);
<App /> root.render(<App />);
</React.StrictMode>,
document.getElementById('root')
);