@tempots/dom
Fragment() function
Creates a fragment renderable that represents a collection of child renderables.
The Fragment itself does not render any DOM elements. Instead, it renders the child renderables in the given DOM context.
It can be used any time a single Renderable/TNode is expected, but multiple renderables are needed.
Signature:
Fragment: (...children: TNode[]) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
children |
TNode[] |
The child renderables to include in the fragment. |
Returns: Renderable
A renderable function that renders the child renderables in the given DOM context.