diff --git a/index.js b/index.js index 09968d9..202e148 100644 --- a/index.js +++ b/index.js @@ -100,6 +100,8 @@ function h(tagName, properties, children) { function addChild(c, childNodes, tag, props) { if (typeof c === "string") { childNodes.push(new VText(c)) + } else if (typeof c === 'number') { + childNodes.push(new VText(String(c))); } else if (isChild(c)) { childNodes.push(c) } else if (Array.isArray(c)) {