e, p, c) are used to reduce minified JS code size.
Signature
Parameters
The node name (HTML tag name like
'div', 'span'), or a functional component that constructs a virtual node.The properties map of the virtual node. This includes attributes, event handlers, and other DOM properties.
Variadic list of child elements. Can be virtual nodes, strings, or numbers.
Returns
Example
Usage Notes
- The
h()function is typically used when you need programmatic control over VNode creation - For more declarative syntax, consider using the
xtemplate literal function - Properties are passed directly to the DOM element, so use
classNameinstead ofclass,onclickinstead ofonClick, etc.