chore: upgrade to react@19 (#9182)

This commit is contained in:
David Luzar
2025-02-25 19:18:42 +01:00
committed by GitHub
parent 9ee0b8ffcb
commit 31e8476c78
58 changed files with 2773 additions and 2827 deletions
@@ -1,7 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import { Excalidraw } from "../index";
import { render } from "../tests/test-utils";
import { render, unmountComponent } from "../tests/test-utils";
import { Keyboard, Pointer, UI } from "../tests/helpers/ui";
import { KEYS } from "../keys";
import { API } from "../tests/helpers/api";
@@ -9,7 +8,7 @@ import { actionSelectAll } from "../actions";
import { t } from "../i18n";
import { mutateElement } from "../element/mutateElement";
ReactDOM.unmountComponentAtNode(document.getElementById("root")!);
unmountComponent();
const mouse = new Pointer("mouse");
const h = window.h;