Trilium Frontend API
    Preparing search index...

    Interface ComponentClass<P, S>

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

    Type Parameters

    • P = {}
    • S = {}
    Index

    Constructors

    • Parameters

      • props: P
      • Optionalcontext: any

      Returns Component<P, S>

    Properties

    contextType?: Context<any>
    defaultProps?: Partial<P>
    displayName?: string

    Methods

    • Parameters

      • error: any

      Returns Partial<S>