Helper type to retrieve the actual DOM element type from a tag name. This is useful when creating or manipulating elements dynamically.
The HTML element tag name.
const div = tree("div"); // <- "const div" is a DomElement Copy
const div = tree("div"); // <- "const div" is a DomElement
Helper type to retrieve the actual DOM element type from a tag name. This is useful when creating or manipulating elements dynamically.