Function createElement

  • Creates an element.

    Parameters

    • type: ComponentClass | FC

      The type argument must be a valid component type.

    • Optionalprops: null | Props

      The props argument must either be an object or null.

    • ...children: Element[]

      Zero or more child elements.

    Returns JSX.Element

    • Element object with properties type and props.