diff --git a/src/index.jsx b/src/index.jsx index fb751935..7a94b553 100644 --- a/src/index.jsx +++ b/src/index.jsx @@ -51,12 +51,12 @@ const router = createBrowserRouter( }, ], }, - { - path: '*', - element: , - }, ], }, + { + path: '*', + element: , + }, ], { basename: import.meta.env.BASE_URL, diff --git a/src/pages/[all].tsx b/src/pages/[all].tsx index ced31f7a..d3ea1639 100644 --- a/src/pages/[all].tsx +++ b/src/pages/[all].tsx @@ -1,7 +1,14 @@ +import { + useLocation +} from "react-router-dom"; + function NoMatch() { + const location = useLocation(); + return (

404

+

No match for {location.pathname}

); }