@tempots/dom
El() function
Creates a Renderable that represents an HTML element.
Signature:
El: (tagName: string, ...children: TNode[]) => Renderable
Parameters
Parameter |
Type |
Description |
---|---|---|
tagName |
string |
The tag name of the HTML element. |
children |
TNode[] |
The child nodes of the HTML element. |
Returns: Renderable
A renderable function that creates and appends the HTML element to the DOM.