import React, { FunctionComponent } from "react"; export declare function EerrorProtect
(WrappedComponent: FunctionComponent
): { new (props: Readonly
): {
state: {
hasErr: boolean;
};
ComponentDidCatch: () => void;
render(): JSX.Element | "sorry Something Wrong";
context: any;
setState & Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly , nextState: Readonly , prevState: Readonly , prevState: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly , nextState: Readonly & Readonly<{
children?: React.ReactNode;
}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly , nextState: Readonly , prevState: Readonly , prevState: Readonly , nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly , nextContext: any): void;
componentWillUpdate?(nextProps: Readonly , nextState: Readonly , nextState: Readonly