MCPcopy Index your code
hub / github.com/arfct/itty-bitty / render.js

File render.js

docs/render.js:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// window.el = function (tagName, attrs, ...children) {
2// let l = document.createElement(tagName);
3// Object.entries(attrs).forEach(([k,v]) => l[k] = v);
4// children.forEach((c) => l.appendChild(typeof c == "string" ? document.createTextNode(c) : c));

Callers

nothing calls this directly

Calls 2

renderScriptContentFunction · 0.85
fromMethod · 0.80

Tested by

no test coverage detected