Spaces:
Build error
Build error
Download frond/src/error-page.jsx from chartManD/testing-area: direct link, hf CLI and curl.
- Browser
- Download file 349 Bytes
-
https://huggingface.co/spaces/chartManD/testing-area/resolve/main/frond/src/error-page.jsx
- Command line
-
hf download hf://spaces/chartManD/testing-area/frond/src/error-page.jsx
-
curl -L -o error-page.jsx https://huggingface.co/spaces/chartManD/testing-area/resolve/main/frond/src/error-page.jsx
349 Bytes
| import { useRouteError } from "react-router-dom"; | |
| export default function ErrorPage() { | |
| const error = useRouteError(); | |
| console.error(error); | |
| return ( | |
| <div id="error-page"> | |
| <h1>Oops!</h1> | |
| <p>Sorry, an unexpected error has occurred.</p> | |
| <p> | |
| <i>{error.statusText || error.message}</i> | |
| </p> | |
| </div> | |
| ); | |
| } | |