bedee3ba8d
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
27 lines
632 B
TypeScript
27 lines
632 B
TypeScript
import React from "react";
|
|
import ReactDOM from "react-dom/client";
|
|
import "@xyflow/react/dist/style.css";
|
|
import "./styles/index.css";
|
|
import App from "./App";
|
|
import { reportError } from "./utils/errorReporting";
|
|
|
|
window.addEventListener("unhandledrejection", (event) => {
|
|
reportError(event.reason, "rejection");
|
|
});
|
|
|
|
window.addEventListener("error", (event) => {
|
|
if (event.error) reportError(event.error, "unhandled");
|
|
});
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
if (!root) {
|
|
throw new Error("Root element not found");
|
|
}
|
|
|
|
ReactDOM.createRoot(root).render(
|
|
<React.StrictMode>
|
|
<App />
|
|
</React.StrictMode>,
|
|
);
|