diff --git a/src/index.js b/src/index.js index 1b3f007..2d9c670 100644 --- a/src/index.js +++ b/src/index.js @@ -7,15 +7,25 @@ import { BrowserRouter, Route, Routes, useLocation } from "react-router-dom"; import { AnimatePresence } from "framer-motion"; import Home from "./pages/Home.jsx"; import Profile from "./pages/Profile.jsx"; -import {ErrorBoundary} from "./components/ErrorBoundary.jsx"; +import { ErrorBoundary } from "react-error-boundary"; +// import { ErrorBoundary } from "./components/ErrorBoundary.jsx"; const root = ReactDOM.createRoot(document.getElementById("root")); +function fallbackRender({ error, resetErrorBoundary }) { + return ( +
Something went wrong:
+{error.message}
+