Represents a JSX element.

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

Example

const element: ReactElement = <div />;
interface ReactPortal {
    children: ReactNode;
    key: null | string;
    props: any;
    type: string | JSXElementConstructor<any>;
}

Hierarchy (view full)

Properties

Properties

children: ReactNode
key: null | string
props: any
type: string | JSXElementConstructor<any>

Generated using TypeDoc