mirror of
https://gitlab.com/comunic/comunicconsole
synced 2024-11-27 07:49:22 +00:00
Update root call
This commit is contained in:
parent
6e992735a3
commit
51c23a93fe
@ -1,15 +1,21 @@
|
|||||||
import React from 'react';
|
import React from "react";
|
||||||
import ReactDOM from 'react-dom';
|
import { createRoot } from "react-dom/client";
|
||||||
import './index.css';
|
|
||||||
import App from './App';
|
|
||||||
import reportWebVitals from './reportWebVitals';
|
|
||||||
|
|
||||||
ReactDOM.render(
|
import App from "./App";
|
||||||
<React.StrictMode>
|
import "./index.css";
|
||||||
<App />
|
import reportWebVitals from "./reportWebVitals";
|
||||||
</React.StrictMode>,
|
|
||||||
document.getElementById('root')
|
async function init() {
|
||||||
);
|
const container = document.getElementById("root");
|
||||||
|
const root = createRoot(container!);
|
||||||
|
root.render(
|
||||||
|
<React.StrictMode>
|
||||||
|
<App />
|
||||||
|
</React.StrictMode>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
init();
|
||||||
|
|
||||||
// If you want to start measuring performance in your app, pass a function
|
// If you want to start measuring performance in your app, pass a function
|
||||||
// to log results (for example: reportWebVitals(console.log))
|
// to log results (for example: reportWebVitals(console.log))
|
||||||
|
Loading…
Reference in New Issue
Block a user