@untemps/utils - v3.1.0
    Preparing search index...

    Function createElement

    • Parameters

      Returns HTMLElement

      The new DOM element.

      import { createElement } from '@untemps/utils/dom/createElement'

      createElement({
      tag: 'p',
      attributes: { id: 'foo', style: 'font-weight: bold' },
      textContent: 'Foo',
      parentSelector: 'body'
      }) // <p id="foo" style="font-weight: bold">Foo</p>