Interface ReactElement<P, T>

Represents a JSX element.

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

Example

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

Type Parameters

Hierarchy (view full)

Properties

Properties

key: null | string
props: P
type: T

Generated using TypeDoc