chessGame / frontend /src /components /ErrorBoundary.jsx
ilhamdev's picture
Upload folder using huggingface_hub
ece5841 verified
raw
history blame contribute delete
254 Bytes
import React from 'react'
import { useRouteError } from 'react-router-dom'
const ErrorBoundary = () => {
const error = useRouteError();
return (
<div>
{
Object.toString(error)
}
</div>
)
}
export default ErrorBoundary