We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc51b71 + 5be05af commit 7f14eaeCopy full SHA for 7f14eae
1 file changed
src/vhtml.js
@@ -13,7 +13,7 @@ export default function h(name, attrs) {
13
14
// Sortof component support!
15
if (typeof name==='function') {
16
- attrs.children = stack.reverse();
+ if (attrs) attrs.children = stack.reverse();
17
return name(attrs);
18
// return name(attrs, stack.reverse());
19
}
0 commit comments