Download Amazon-clone/src/Components/Error.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 643 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/Components/Error.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/Components/Error.js
-
curl -L -o Error.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/Amazon-clone/src/Components/Error.js
643 Bytes
| import React from "react"; | |
| import error from "../imgs/error.png"; | |
| import "./error.css"; | |
| import { useNavigate } from "react-router-dom"; | |
| function Error() { | |
| const navigate = useNavigate(); | |
| document.title = "404! Page not found" | |
| return ( | |
| <> | |
| <div className="error-page"> | |
| <p className="big-error">404</p> | |
| <p className="medium-error">Something went</p> | |
| <p className="wrong">WRONG!</p> | |
| <button | |
| onClick={() => { | |
| navigate("/"); | |
| }} | |
| className="back-home" | |
| > | |
| Back to Homepage | |
| </button> | |
| </div> | |
| </> | |
| ); | |
| } | |
| export default Error; | |