You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
385 B
TypeScript
18 lines
385 B
TypeScript
import * as React from 'react'
|
|
import { useRouteError } from "react-router-dom";
|
|
|
|
export default function ErrorPage() {
|
|
const error: any = 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>
|
|
);
|
|
}
|