Not Found
not-found.js
is a file convention that lets you define fallback UI for a route segment when the notFound()
function is thrown or an unmatched URL is visited.
Use filesytem hierarchy to define more or less specific fallback UI.
Demo
- Navigate to non-existent categories or sub-categories:
Links