Interface ReactElement

A stand-in for the real React.ReactElement. Use React.createElement to make these. See creating an element without jsx from the official React documentation.

interface ReactElement {
    key: null | string | number;
    props: any;
    type: string | ((props) => null | ReactElement) | (new (props) => object);
}

Properties

Properties

key: null | string | number
props: any
type: string | ((props) => null | ReactElement) | (new (props) => object)

Type declaration

Type declaration

    • new (props): object
    • Parameters

      • props: any

      Returns object