Interface DOMElement<P, T>

Represents a JSX element.

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

Example

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

Type Parameters

Hierarchy (view full)

Properties

Properties

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