UNPKG

react-error-boundary

Version:

Simple reusable React error boundary component

6 lines (5 loc) 208 B
export type UseErrorBoundaryApi<TError> = { resetBoundary: () => void; showBoundary: (error: TError) => void; }; export declare function useErrorBoundary<TError = any>(): UseErrorBoundaryApi<TError>;