@plurid/plurid-react
Version:
React implementation of Plurid to explore the web in three dimensions
19 lines (18 loc) • 601 B
TypeScript
import React from 'react';
import { PluridReactComponent } from "../../../data/interfaces";
export interface ErrorBoundaryProperties {
renderError?: PluridReactComponent;
children?: any;
}
export interface ErrorBoundaryState {
hasError: boolean;
}
declare class ErrorBoundary extends React.Component<ErrorBoundaryProperties, ErrorBoundaryState> {
constructor(props: ErrorBoundaryProperties);
static getDerivedStateFromError(error: any): {
hasError: boolean;
};
componentDidCatch(error: any, errorInfo: any): void;
render(): any;
}
export default ErrorBoundary;