react-cosmos
Version:
CLI for running React Cosmos inside webpack-powered apps
16 lines (15 loc) • 497 B
TypeScript
import React from 'react';
import { ReactDecoratorProps } from 'react-cosmos-shared2/react';
declare type State = {
error: null | string;
};
export declare class ErrorCatch extends React.Component<ReactDecoratorProps, State> {
state: State;
componentDidCatch(error: Error, info: {
componentStack: string;
}): void;
componentDidUpdate(prevProps: ReactDecoratorProps): void;
render(): React.ReactNode;
renderError(error: string): JSX.Element | null;
}
export {};