404notfoundpage
v3.0.0
Published
=>npm i 404notfoundpage<=
Downloads
1
Readme
NotFoundPage Component
=>npm i 404notfoundpage<=
The NotFoundPage
component is a React component designed to display a custom 404 error page with a user-friendly message, a link to the homepage, and an image.
Features
- Displays a 404 Not Found error message.
- Provides a link back to the homepage.
- Shows an image related to the error.
Usage
1. Add the Page to Your Project
Ensure you have an image that represents the 404 error.Hosted Somewhere with Read Permissons
2. Import and Use the NotFoundPage
Component
First, import the NotFoundPage
component into your file
=>>>>npm i 404notfoundpage
import { NotFoundPage } from '404NotFoundPage'; //
<Route component={
<NotFoundPage
message="Oops! The page you are looking for does not exist."
linkText="Return Home"
imageUrl="/images/custom-404.png " // Preferr to give hosted image only
/>
} /> Adjust the code as necessary