79159294

Date: 2024-11-05 13:32:15
Score: 0.5
Natty:
Report link

just create another route for the error page at the end using wildcard

const router = createBrowserRouter([
  {
    path: '/',
    element: <App />,
    children: [ ... ],
  },
  {
    path: "*", // use wildcard path (*) 
    element: <ErrorPage />,
  },
]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mes shahdat