Interface ReactHTMLElement<T>

Represents a JSX element.

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

Example

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

Type Parameters

  • T extends HTMLElement

    The type of the props object

Hierarchy (view full)

Properties

Properties

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