Component
interface Component <P = {}, S = {}> {
componentDidMount?(): void;
componentDidUpdate?(
previousProps: Readonly<P>,
previousState: Readonly<S>,
snapshot: any,
): void;componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<P>, nextContext: any): void;
componentWillUnmount?(): void;
componentWillUpdate?(
nextProps: Readonly<P>,
nextState: Readonly<S>,
nextContext: any,
): void;getChildContext?(): object;
getSnapshotBeforeUpdate?(oldProps: Readonly<P>, oldState: Readonly<S>): any;
shouldComponentUpdate?(
}nextProps: Readonly<P>,
nextState: Readonly<S>,
nextContext: any,
): boolean;abstract class Component<P, S> { }
constructor(props?: P, context?: any);
base?: Element | Text;
context: any;
props: RenderableProps<P>;
state: Readonly<S>;
forceUpdate(callback?: () => void): void;
setState<K extends keyof S>(state: ((prevState: Readonly<S>, props: Readonly<P>) => Pick<S, K> | Partial<S> | null) | (Pick<S, K> | Partial<S> | null), callback?: () => void): void;
static defaultProps?: any;
static displayName?: string;
static getDerivedStateFromError?(error: any): object | null;
static getDerivedStateFromProps?(props: Readonly<object>, state: Readonly<object>): object | null;