The HTML tag name.
Optionalattributes: Record<string, string> | nullAttributes to set on the element. Can be null or undefined.
Children to append (strings, nodes, or other JJHE instances).
The created JJHE instance.
It returns a JJHE instance which wraps the native HTMLElement.
You may recognize it from other libraries:
This is not exactly a replacement, but it roughly follows the same idea.
Hyperscript helper to create JJHE instances. The
hfunction provides a concise way to create DOM wrappers with attributes and children, similar to hyperscript helpers found in other libraries.