This function can do the following based on the first argument:
div
abbr
custom-tag
'(body)'
'(#id)'
'(.class)'
Then it can receive a list of children to be added. And receives a third argument for attaching this tag to the currently attach tag (attach)
tag('div');tag('(body)');tag('(.someclass)');tag(document.querySelector('#something')); Copy
tag('div');tag('(body)');tag('(.someclass)');tag(document.querySelector('#something'));
Generated using TypeDoc
This function can do the following based on the first argument:
div
,abbr
,custom-tag
, ...),'(body)'
,'(#id)'
,'(.class)'
), any selector is allowed.Then it can receive a list of children to be added. And receives a third argument for attaching this tag to the currently attach tag (attach)