File tree 1 file changed +2
-7
lines changed
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,6 @@ export type MaybePromise<T> = T | Promise<T>;
15
15
export const Fragment = ( props : {
16
16
children : JSX . Element [ ] | JSX . Element ;
17
17
} ) : JSX . Element [ ] => {
18
- console . log ( "🚀 ~ Fragment ~ props:" , props ) ;
19
18
if ( Array . isArray ( props . children ) ) {
20
19
return props . children ;
21
20
}
@@ -36,12 +35,6 @@ export const jsx = <
36
35
if ( ! children && props ?. children ) {
37
36
children = props . children ;
38
37
}
39
- console . log ( "🚀 ~ jsx ~ children:" , {
40
- children,
41
- props,
42
- component,
43
- childrenIsArray : Array . isArray ( children ) ,
44
- } ) ;
45
38
return Promise . resolve ( component ( props ?? ( { } as TProps ) ) ) . then ( result => {
46
39
if ( children ) {
47
40
// If its an array of elements, this is an edge case for a Fragment.
@@ -56,6 +49,8 @@ export const jsx = <
56
49
}
57
50
return Promise . resolve ( childrenResult ) ;
58
51
}
52
+
53
+ // If its a single element, this is an edge case for a Fragment.
59
54
return Promise . resolve ( children ) ;
60
55
}
61
56
return result ;
You can’t perform that action at this time.
0 commit comments