@@ -490,7 +490,8 @@ function ChildReconciler(shouldTrackSideEffects) {
490
490
) : Fiber | null {
491
491
if (
492
492
( typeof newChild === 'string' && newChild !== '' ) ||
493
- typeof newChild === 'number'
493
+ typeof newChild === 'number' ||
494
+ typeof newChild === 'bigint'
494
495
) {
495
496
// Text nodes don't have keys. If the previous node is implicitly keyed
496
497
// we can continue to replace it without aborting even if it is not a text
@@ -567,7 +568,8 @@ function ChildReconciler(shouldTrackSideEffects) {
567
568
568
569
if (
569
570
( typeof newChild === 'string' && newChild !== '' ) ||
570
- typeof newChild === 'number'
571
+ typeof newChild === 'number' ||
572
+ typeof newChild === 'bigint'
571
573
) {
572
574
// Text nodes don't have keys. If the previous node is implicitly keyed
573
575
// we can continue to replace it without aborting even if it is not a text
@@ -630,7 +632,8 @@ function ChildReconciler(shouldTrackSideEffects) {
630
632
) : Fiber | null {
631
633
if (
632
634
( typeof newChild === 'string' && newChild !== '' ) ||
633
- typeof newChild === 'number'
635
+ typeof newChild === 'number' ||
636
+ typeof newChild === 'bigint'
634
637
) {
635
638
// Text nodes don't have keys, so we neither have to check the old nor
636
639
// new node for the key. If both are text nodes, they match.
@@ -1321,7 +1324,8 @@ function ChildReconciler(shouldTrackSideEffects) {
1321
1324
1322
1325
if (
1323
1326
( typeof newChild === 'string' && newChild !== '' ) ||
1324
- typeof newChild === 'number'
1327
+ typeof newChild === 'number' ||
1328
+ typeof newChild === 'bigint'
1325
1329
) {
1326
1330
return placeSingleChild (
1327
1331
reconcileSingleTextNode (
0 commit comments