The configuration object for the new DOM element.
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> Copy
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>
The configuration object for the new DOM element.