Interface ComponentElement<P, T>

Represents a JSX element.

Where ReactNode represents everything that can be rendered, ReactElement only represents JSX.

Example

const element: ReactElement = <div />;
interface ComponentElement<P, T> {
    key: string;
    props: P;
    ref?: LegacyRef<T>;
    type: ComponentClass<P, any>;
}

Type Parameters

Hierarchy (view full)

Properties

Properties

key: string
props: P
ref?: LegacyRef<T>
type: ComponentClass<P, any>