mirror of
https://github.com/cloudflare/vinext.git
synced 2026-09-14 19:04:59 +08:00
13 lines
298 B
React
13 lines
298 B
React
import { useEffect } from "react";
|
|
|
|
export default function ErrorPlaceholder({ error }) {
|
|
useEffect(() => {
|
|
// Log the error to an error reporting service
|
|
console.error(error);
|
|
}, [error]);
|
|
|
|
return (
|
|
<span>{`Application error: a server-side exception has occurred`}</span>
|
|
);
|
|
}
|