diff --git a/src/ui/web/html.js b/src/ui/web/html.js index 0335ca69..9946887d 100644 --- a/src/ui/web/html.js +++ b/src/ui/web/html.js @@ -12,6 +12,9 @@ export function el(elementName, attrs, children) { if (Array.isArray(children)) { // TODO: use fragment here? for (let c of children) { + if (typeof c === "string") { + c = text(c); + } e.appendChild(c); } }