Spaces:
Sleeping
Sleeping
File size: 348 Bytes
fab48db |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
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>
);
} |