{"record":{"id":"bf3b9ab83f786a0f","repo":"facebook/react","slug":"31","errorCode":"31","errorMessage":"Objects are not valid as a React child (found: ${childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString}). If you meant to render a collection of children, use an array instead.","messagePattern":"Objects are not valid as a React child \\(found: (.+?)' : childString\\}\\)\\. If you meant to render a collection of children, use an array instead\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/react-reconciler/src/ReactChildFiber.js","lineNumber":315,"sourceCode":"  // should always read the ref from the prop.\n  workInProgress.ref = refProp !== undefined ? refProp : null;\n}\n\nfunction throwOnInvalidObjectTypeImpl(returnFiber: Fiber, newChild: Object) {\n  if (newChild.$$typeof === REACT_LEGACY_ELEMENT_TYPE) {\n    throw new Error(\n      'A React Element from an older version of React was rendered. ' +\n        'This is not supported. It can happen if:\\n' +\n        '- Multiple copies of the \"react\" package is used.\\n' +\n        '- A library pre-bundled an old copy of \"react\" or \"react/jsx-runtime\".\\n' +\n        '- A compiler tries to \"inline\" JSX instead of using the runtime.',\n    );\n  }\n\n  // $FlowFixMe[method-unbinding]\n  const childString = Object.prototype.toString.call(newChild);\n\n  throw new Error(\n    `Objects are not valid as a React child (found: ${\n      childString === '[object Object]'\n        ? 'object with keys {' + Object.keys(newChild).join(', ') + '}'\n        : childString\n    }). ` +\n      'If you meant to render a collection of children, use an array ' +\n      'instead.',\n  );\n}\n\nfunction throwOnInvalidObjectType(returnFiber: Fiber, newChild: Object) {\n  const debugTask = getCurrentDebugTask();\n  if (__DEV__ && debugTask !== null) {\n    debugTask.run(\n      throwOnInvalidObjectTypeImpl.bind(null, returnFiber, newChild),\n    );\n  } else {\n    throwOnInvalidObjectTypeImpl(returnFiber, newChild);","sourceCodeStart":297,"sourceCodeEnd":333,"githubUrl":"https://github.com/facebook/react/blob/eafeac097ba51e1eab809c07102126bd5f8e5425/packages/react-reconciler/src/ReactChildFiber.js#L297-L333","documentation":"Error \"Objects are not valid as a React child (found: ${childString === '[object Object]' ? 'object with keys {' + Object.keys(newChild).join(', ') + '}' : childString}). If you meant to render a collection of children, use an array instead.\" thrown in facebook/react.","triggerScenarios":"Thrown at packages/react-reconciler/src/ReactChildFiber.js:315 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"eafeac097ba51e1eab809c07102126bd5f8e5425","analyzedAt":"2026-08-21T22:01:08.818Z","schemaVersion":2},"datasetVersion":"2026-08-21T23:17:16.201Z"}