MCPcopy Create free account
hub / github.com/plotly/dash / throwOnInvalidObjectType

Function throwOnInvalidObjectType

dash/deps/react-dom@18.3.1.js:13131–13134  ·  view source on GitHub ↗
(returnFiber, newChild)

Source from the content-addressed store, hash-verified

13129 }
13130
13131 function throwOnInvalidObjectType(returnFiber, newChild) {
13132 var childString = Object.prototype.toString.call(newChild);
13133 throw new 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.');
13134 }
13135
13136 function warnOnFunctionType(returnFiber) {
13137 {

Callers 4

createChildFunction · 0.70
updateSlotFunction · 0.70
updateFromMapFunction · 0.70
reconcileChildFibersFunction · 0.70

Calls 1

keysMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…