interface ClassicComponentClass<P> {
    new ClassicComponentClassnew (props: P, context?: any): ClassicComponent<P, any>;
    new ClassicComponentClassnew (props: P, context?: any): Component<P, any, any>;
    childContextTypes?: ValidationMap<any>;
    contextType?: Context<any>;
    contextTypes?: ValidationMap<any>;
    defaultProps?: Partial<P>;
    displayName?: string;
    getDerivedStateFromError?: GetDerivedStateFromError<P, any>;
    getDerivedStateFromProps?: GetDerivedStateFromProps<P, any>;
    propTypes?: WeakValidationMap<P>;
    getDefaultProps?(): P;
}

Type Parameters

  • P = {}

Hierarchy (view full)

Constructors

  • Parameters

    • props: P
    • Optionalcontext: any

    Returns ClassicComponent<P, any>

  • Parameters

    • props: P
    • Optionalcontext: any

    Returns Component<P, any, any>

Properties

childContextTypes?: ValidationMap<any>
contextType?: Context<any>
contextTypes?: ValidationMap<any>
defaultProps?: Partial<P>
displayName?: string
getDerivedStateFromError?: GetDerivedStateFromError<P, any>
getDerivedStateFromProps?: GetDerivedStateFromProps<P, any>
propTypes?: WeakValidationMap<P>

Methods

  • Returns P