Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Silbermann committed Feb 17, 2024
1 parent 79e714e commit 8edecc0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/react-noop-renderer/src/createReactNoop.js
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,14 @@ function createReactNoop(reconciler: Function, useMutation: boolean) {
return childToJSX(child[0], null);
}
const children = child.map(c => childToJSX(c, null));
if (children.every(c => typeof c === 'string' || typeof c === 'number')) {
if (
children.every(
c =>
typeof c === 'string' ||
typeof c === 'number' ||
typeof c === 'bigint',
)
) {
return children.join('');
}
return children;
Expand Down

0 comments on commit 8edecc0

Please sign in to comment.