The `NotFound` component is a React functional component that displays a 404 Not Found message along with an animation and an optional button.
npm install react-notfound-pageThe NotFound component is a React functional component that displays a 404 Not Found message along with an animation and an optional button.
``bash`
npm i react-notfound-page
The NotFound component accepts the following props:
| Prop | Type | Default Value | Description |
|-------------------|------------------------------------|-------------------------|----------------------------------------------------|
| ButtonComponent | React.FC (optional) | () => null | A custom button component to render. |text
| | string (optional) | '404 NotFound !' | The text to display in the Not Found message. |rootClassName
| | string (optional) | '' | Additional class names for the root container. |textClassName
| | string (optional) | '' | Additional class names for the text element. |
Below is an example of how to use the NotFound component in your application:
`tsx
import React from 'react';
import NotFound from 'react-notfound-page';
const CustomButton = () => (
);
const AppNotFoundPage = () => {
return (
export default AppNotFoundPage;
``
This component is open source and available under the MIT License.