Skip to content

Commit

Permalink
Merge pull request #677 from carvinlo/patch-1
Browse files Browse the repository at this point in the history
Handling 404 page not found in React Router v6
  • Loading branch information
FlorianRappl authored Mar 10, 2024
2 parents 12a9d67 + d8736c8 commit 7e0ddd4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const DefaultRouteSwitch: React.FC<RouteSwitchProps> = ({ paths, NotFound
))}
{
//@ts-ignore
<Route element={<NotFound />} />
<Route path={'*'} element={<NotFound />} />
}
</Routes>
);
Expand Down

0 comments on commit 7e0ddd4

Please sign in to comment.