@datalayer/primer-rjsf
Version:
React JSON Schema Form (RJSF) for Primer
14 lines (13 loc) • 431 B
TypeScript
import React from "react";
declare class ErrorBoundary extends React.Component<any, any> {
constructor(props: any);
/** Update state so the next render will show the fallback UI. */
static getDerivedStateFromError(error: any): {
hasError: boolean;
error: any;
};
resetErrorBoundary: () => void;
/** You can render any custom fallback UI */
render(): any;
}
export default ErrorBoundary;