NotFound component renders a 404 error page displayed when users navigate to an invalid route.
Component Structure
components/notfound.js
Props
This component does not accept any props.Layout
The component displays:- Full viewport height container (
vh-100) - Centered heading with frown emoji icon from Font Awesome
- Message in Spanish: “Página no encontrada” (Page not found)
Route Configuration
This component is rendered for the catch-all route in React Router:Usage
You don’t need to manually render this component. React Router automatically displays it when users:- Enter an invalid URL
- Click a broken link
- Navigate to a deleted or moved page
Related
- Routing - Application routing configuration
- App Component - Root component with route definitions