UNPKG

@rcpch/digital-growth-charts-react-component-library

Version:

A React component library for the RCPCH digital growth charts using Rollup, TypeScript and Styled-Components

24 lines (23 loc) 642 B
import * as React from 'react'; type PropTypes = { children: React.ReactNode; styles: { [key: string]: any; }; }; declare class ErrorBoundary extends React.Component { state: { hasError: boolean; errorMessage: string; showError: boolean; }; props: PropTypes; constructor(props: PropTypes); static getDerivedStateFromError(): { hasError: boolean; }; componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void; handleClick(): void; render(): string | number | boolean | React.JSX.Element | Iterable<React.ReactNode>; } export default ErrorBoundary;