kepler.gl
Version:
kepler.gl is a webgl based application to visualize large scale location data in the browser
17 lines (16 loc) • 526 B
TypeScript
import React, { ErrorInfo } from 'react';
interface ErrorBoundaryProps {
children?: React.ReactNode;
}
export default class ErrorBoundary extends React.Component<ErrorBoundaryProps> {
static getDerivedStateFromError(error: any): {
hasError: boolean;
error: any;
};
state: {
hasError: boolean;
};
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
render(): string | number | boolean | Iterable<React.ReactNode> | React.JSX.Element | null | undefined;
}
export {};