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.
const collection = elems("Hello, ", elem!"span"("world!")); assert(collection == `Hello, <span>world!</span>`); assert(elem!"div"(collection) == `<div>Hello, <span>world!</span></div>`);
See Implementation
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.