|
|
@@ -13,8 +13,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
*/
|
|
|
|
|
|
import React from "react";
|
|
|
-import ReactDOM from "react-dom";
|
|
|
+import { createRoot } from "react-dom/client";
|
|
|
|
|
|
import App from "./components/App";
|
|
|
|
|
|
-ReactDOM.render(<App />, document.getElementById("app"));
|
|
|
+const container = document.getElementById("app");
|
|
|
+
|
|
|
+const root = createRoot(container!);
|
|
|
+root.render(<App />);
|