mirror of
https://github.com/UA-Fediland/synapse-admin.git
synced 2025-11-30 04:17:30 +00:00
Upgrade react to v18
https://react.dev/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis Change-Id: Ibac40eb3d900f54955dfbc8f5e2833a0c47941a6
This commit is contained in:
parent
64a89f6552
commit
82155c23a1
3 changed files with 67 additions and 116 deletions
|
|
@ -1,5 +1,9 @@
|
|||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import { createRoot } from "react-dom/client";
|
||||
import App from "./App";
|
||||
|
||||
ReactDOM.render(<App />, document.getElementById("root"));
|
||||
createRoot(document.getElementById("root")).render(
|
||||
<React.StrictMode>
|
||||
<App />
|
||||
</React.StrictMode>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue