Function createDiv

  • Creates an HTML div element.

    Type Parameters

    • T extends keyof HTMLElementTagNameMap = "div"

    Parameters

    • __namedParameters: {
          addToBody?: boolean;
          classList?: string[];
          elementTag?: T;
          id?: string;
          innerHTML?: string;
      }

    Returns HTMLElementTagNameMap[T]