UNPKG

rinshad-react-guard

Version:

A robust React error boundary solution developed by [rinshad.com](https://rinshad.com) to elegantly handle runtime errors in React applications. Instead of showing the dreaded white screen of death, this library captures errors and displays a user-friendl

15 lines (11 loc) 368 B
import { ReactNode } from 'react'; export interface ErrorBoundaryProps { children: ReactNode; excludedKeywords?: string[]; } export interface Error500Props { onBackToHome?: () => void; } export declare const ErrorBoundary: React.FC<ErrorBoundaryProps>; export declare const Error500: React.FC<Error500Props>; export default ErrorBoundary;