fix(index.tsx): adjust deprecated react-dom 19 functions
This commit is contained in:
parent
2188ad08ae
commit
ffeb3c1ad4
1 changed files with 4 additions and 4 deletions
|
@ -1,10 +1,10 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./app";
|
||||
|
||||
ReactDOM.render(
|
||||
const root = ReactDOM.createRoot(document.getElementById("root") as HTMLElement);
|
||||
root.render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>,
|
||||
document.getElementById("root"),
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue