ComponentClass
interface ComponentClass <P = {}, S = {}> {
contextType?: Context<any>;
defaultProps?: Partial<P>;
displayName?: string;
getDerivedStateFromError?(error: any): Partial<S> | null;
getDerivedStateFromProps?(props: Readonly<P>, state: Readonly<S>): Partial<S> | null;
}