@@ -490,7 +490,8 @@ function ChildReconciler(shouldTrackSideEffects) {
490490 ) : Fiber | null {
491491 if (
492492 ( typeof newChild === 'string' && newChild !== '' ) ||
493- typeof newChild === 'number'
493+ typeof newChild === 'number' ||
494+ typeof newChild === 'bigint'
494495 ) {
495496 // Text nodes don't have keys. If the previous node is implicitly keyed
496497 // we can continue to replace it without aborting even if it is not a text
@@ -567,7 +568,8 @@ function ChildReconciler(shouldTrackSideEffects) {
567568
568569 if (
569570 ( typeof newChild === 'string' && newChild !== '' ) ||
570- typeof newChild === 'number'
571+ typeof newChild === 'number' ||
572+ typeof newChild === 'bigint'
571573 ) {
572574 // Text nodes don't have keys. If the previous node is implicitly keyed
573575 // we can continue to replace it without aborting even if it is not a text
@@ -630,7 +632,8 @@ function ChildReconciler(shouldTrackSideEffects) {
630632 ) : Fiber | null {
631633 if (
632634 ( typeof newChild === 'string' && newChild !== '' ) ||
633- typeof newChild === 'number'
635+ typeof newChild === 'number' ||
636+ typeof newChild === 'bigint'
634637 ) {
635638 // Text nodes don't have keys, so we neither have to check the old nor
636639 // new node for the key. If both are text nodes, they match.
@@ -1321,7 +1324,8 @@ function ChildReconciler(shouldTrackSideEffects) {
13211324
13221325 if (
13231326 ( typeof newChild === 'string' && newChild !== '' ) ||
1324- typeof newChild === 'number'
1327+ typeof newChild === 'number' ||
1328+ typeof newChild === 'bigint'
13251329 ) {
13261330 return placeSingleChild (
13271331 reconcileSingleTextNode (
0 commit comments