Function: createElement()
Estimated reading time: less than 1 minuteGenerates a html string from the given contents.
Parameters
this
void
name
The name of the element to create or a function that creates the element.
string | Function
attributes?
any
A record of literal values to use as attributes. A property named children will be used
as the children of the element.
children?
...Children[]
The inner contents of the element.
Returns
Element
The generated html string.