UNPKG

@kubit-ui-web/react-components

Version:

Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience

11 lines (10 loc) 610 B
import React from 'react'; import { ErrorBoundaryContextType, ErrorBoundaryProps, ErrorBoundaryState } from './types/errorBoundary'; export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundaryState> { constructor(props: ErrorBoundaryProps); static contextType: React.Context<ErrorBoundaryContextType>; static getDerivedStateFromError(): ErrorBoundaryState; static getDerivedStateFromProps(props: ErrorBoundaryProps, state: ErrorBoundaryState): ErrorBoundaryState | null; componentDidCatch(error: Error): ErrorBoundaryState; render(): React.ReactNode; }