elems

Creates an element to function as an element collection to place within other elements. For Elemi, it acts like an element, so it can accept child nodes, and can be appended to, but it is invisible for the generated document.

elems
(
T...
)

Examples

const collection = elems("Hello, ", elem!"span"("world!"));

assert(collection == `Hello, <span>world!</span>`);
assert(elem!"div"(collection) == `<div>Hello, <span>world!</span></div>`);

Meta