Skip to content

Commit 126b990

Browse files
committedApr 21, 2021
component: only look for props.props to find sub components
1 parent 3b0b9f0 commit 126b990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/modules/component.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const component = name => (props = {}, children) => {
55

66
if (is(children, 'undefined')) {
77
// are there children that have been processed by h already?
8-
if (props.name && props.props && props.children) {
8+
if (props.props) {
99
return h(name, {}, [props])
1010
}
1111

0 commit comments

Comments
 (0)
Please sign in to comment.