@kbss-cvut/s-forms
Version:
Semantic forms generator and processor
21 lines (20 loc) • 589 B
TypeScript
export default ErrorBoundary;
declare class ErrorBoundary extends React.Component<any, any, any> {
static getDerivedStateFromError(error: any): {
hasError: boolean;
error: any;
};
constructor(props: any);
state: {
hasError: boolean;
errorLabel: null;
errorDetails: null;
};
componentDidCatch(errorLabel: any, errorDetails: any): void;
render(): any;
}
declare namespace ErrorBoundary {
export { IntlContext as contextType };
}
import React from "react";
import { IntlContext } from "../contexts/IntlContextProvider";