Function domify

  • A tiny version of HyperScript (https://github.com/hyperhype/hyperscript).

    Parameters

    • tagName: string

      name of the tag to create, like div

    • Optional attributes: Record<string, undefined | string>

      dictionary of attributes to set on the children

    • children: (string | number | Element)[] = []

      text or child elements to append

    Returns HTMLElement

Generated using TypeDoc