update react to 18

This commit is contained in:
Felix Roos 2023-03-03 20:38:20 +01:00
parent 4bfeaa47bf
commit 81ab5c78e2
4 changed files with 89 additions and 69 deletions

View file

@ -1,10 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import { createRoot } from 'react-dom/client';
ReactDOM.render(
createRoot(document.getElementById('root')).render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root'),
);