mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 00:10:03 +02:00
updating from react 17 -> 18
This commit is contained in:
parent
c664a0ba2f
commit
919f83c77e
@ -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')
|
|
||||||
);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user