Interface DetailedReactHTMLElement<P, T>

Represents a JSX element.

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

Example

const element: ReactElement = <div />;
interface DetailedReactHTMLElement<P, T> {
    key: string;
    props: P;
    ref: LegacyRef<T>;
    type: keyof ReactHTML;
}

Type Parameters

  • P extends HTMLAttributes<T>

    The type of the props object

  • T extends HTMLElement

    The type of the component or tag

Hierarchy (view full)

Properties

Properties

key: string
props: P
ref: LegacyRef<T>
type: keyof ReactHTML