Shorthand for creating a DocumentFragment from markup. If the fragment has only one child, the child is returned instead. So this is also a shorthand for creating single elements.
The outerHTML of what to create
outerHTML
import { createFragment } from 'deleight/apriori';const frag1 = createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p> Copy
import { createFragment } from 'deleight/apriori';const frag1 = createFragment(` <p>Para 1</p> <p>Para 2</p>`)// <p>Para 1</p><p>Para 2</p>
Shorthand for creating a DocumentFragment from markup. If the fragment has only one child, the child is returned instead. So this is also a shorthand for creating single elements.