feat(client): add error boundary around root App component.

This commit is contained in:
K
2026-05-03 22:42:19 +05:30
parent c54c893eac
commit fd73b8bde5
2 changed files with 38 additions and 1 deletions
+4 -1
View File
@@ -4,11 +4,14 @@ import { BrowserRouter } from "react-router-dom";
import "./i18n.js";
import "./index.css";
import App from "./App.jsx";
import ErrorBoundary from "./components/ErrorBoundary.jsx";
createRoot(document.getElementById("root")).render(
<StrictMode>
<BrowserRouter>
<App />
<ErrorBoundary>
<App />
</ErrorBoundary>
</BrowserRouter>
</StrictMode>
);