Function createDiv

  • Creates a HTML div element.

    Type Parameters

    • T extends keyof HTMLElementTagNameMap = "div"

    Parameters

    • __namedParameters: Partial<InnerHTML> & {
          addToBody?: boolean;
          classList?: string[];
          elementTag?: T;
          id?: string;
      }

    Returns HTMLElementTagNameMap[T]