mirror of
https://github.com/tiqi-group/pydase.git
synced 2025-04-20 08:20:02 +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 { createRoot } from 'react-dom/client';
|
||||
|
||||
// Render the App component into the #root div
|
||||
ReactDOM.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById('root')
|
||||
);
|
||||
const container = document.getElementById('root');
|
||||
const root = createRoot(container);
|
||||
root.render(<App />);
|
||||
|
Loading…
x
Reference in New Issue
Block a user