We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b0b9f0 commit 126b990Copy full SHA for 126b990
src/modules/component.mjs
@@ -5,7 +5,7 @@ export const component = name => (props = {}, children) => {
5
6
if (is(children, 'undefined')) {
7
// are there children that have been processed by h already?
8
- if (props.name && props.props && props.children) {
+ if (props.props) {
9
return h(name, {}, [props])
10
}
11
0 commit comments