Function createElement

  • Creates an element.

    Parameters

    • type: ComponentClass<{}, any> | FC

      The type argument must be a valid component type.

    • Optionalprops: null | Props

      The props argument must either be an object or null.

    • Rest...children: Element[]

      Zero or more child elements.

    Returns JSX.Element

    • Element object with properties type and props.