Interface DeprecatedLifecycle<P, S>

interface DeprecatedLifecycle<P, S> {
    componentWillMount(): void;
    componentWillReceiveProps(nextProps: Readonly<P>, nextContext: any): void;
    componentWillUpdate(
        nextProps: Readonly<P>,
        nextState: Readonly<S>,
        nextContext: any,
    ): void;
    UNSAFE_componentWillMount(): void;
    UNSAFE_componentWillReceiveProps(
        nextProps: Readonly<P>,
        nextContext: any,
    ): void;
    UNSAFE_componentWillUpdate(
        nextProps: Readonly<P>,
        nextState: Readonly<S>,
        nextContext: any,
    ): void;
}

Type Parameters

  • P
  • S

Hierarchy (View Summary)

Methods