Search⌘ K
AI Features

Handling Routes Not Found

Explore how to handle routes not found in React Router by creating a NotFoundPage component. Learn to catch unmatched paths using a wildcard route and improve user experience by informing users when they navigate to invalid URLs.

We'll cover the following...

In this section, we’ll handle paths that aren’t handled by any of the Route components. By following these steps, we’ll start by understanding what happens if we put an unhandled path in the browser:

  1. Enter a path that isn’t handled in the browser and see what happens:

Unhandled path
Unhandled path
...