Skip to content

Commit 5168a3b

Browse files
authored
fix: allow symbol type as render children
This allows for children to be <Fragment>.
1 parent 788fe70 commit 5168a3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/render.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const render = (props, data, ...more) => {
5050

5151
if (children && (children instanceof Object)) {
5252
if (process.env.NODE_ENV !== 'production') {
53-
if (!children.type || ((typeof children.type !== 'string') && (typeof children.type !== 'function'))) {
53+
if (!children.type || ((typeof children.type !== 'string') && (typeof children.type !== 'function') && (typeof children.type !== 'symbol'))) {
5454
console.warn(
5555
'Universal component interface received object as children, ' +
5656
'expected React element, but received unexpected React "type".'

0 commit comments

Comments
 (0)