Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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;
new (props: P, context?: any): Component<P, S>;
}

§Type Parameters

§
P = {}
[src]
§
S = {}
[src]

§Properties

§
contextType?: Context<any>
[src]
§
defaultProps?: Partial<P>
[src]
§
displayName?: string
[src]

§Methods

§
getDerivedStateFromError?(error: any): Partial<S> | null
[src]
§
getDerivedStateFromProps?(props: Readonly<P>, state: Readonly<S>): Partial<S> | null
[src]
§
new (props: P, context?: any): Component<P, S>
[src]