• Create an HTML element of the given type

    Type Parameters

    • T extends keyof HTMLElementTagNameMap

    Parameters

    • type: T
    • attrs: Attrs
    • Optionalparent: Element

    Returns HTMLElementTagNameMap[T]