import { createErrorHandler } from "./errorHandling.js";
import * as ReactDOM from "react-dom";
const runReactApp = (reactElement, domRoot) => {
  const rootEl = domRoot instanceof HTMLElement ? domRoot : typeof domRoot === "string" ? document.querySelector(domRoot) : document.body.appendChild(document.createElement("div"));
  const handler = createErrorHandler();
  handler(() => ReactDOM.render(reactElement, rootEl));
};
export { runReactApp };
//# sourceMappingURL=runReactApp.js.map
