File size: 644 Bytes
6a7089a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import "./index.css";
import App from "./App";
import { ErrorBoundary } from "./components/atoms";
// Global error handlers for debugging
window.onerror = (message, source, lineno, colno, error) => {
console.error("💥 Global error:", { message, source, lineno, colno, error });
return false;
};
window.onunhandledrejection = (event) => {
console.error("💥 Unhandled promise rejection:", event.reason);
};
createRoot(document.getElementById("root")!).render(
<StrictMode>
<ErrorBoundary>
<App />
</ErrorBoundary>
</StrictMode>,
);
|