elems

Creates an element to function as an element collection to place within other elements. This is functionally equivalent to a regular element, server-side, but is transparent for the rendered 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