MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / isValidElement

Function isValidElement

code/event-handlers/public/app.js:18284–18286  ·  view source on GitHub ↗

* Verifies the object is a ReactElement. * See https://reactjs.org/docs/react-api.html#isvalidelement * @param {?object} object * @return {boolean} True if `object` is a valid component. * @final

(object)

Source from the content-addressed store, hash-verified

18282 * @final
18283 */
18284function isValidElement(object) {
18285 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
18286}
18287
18288var ReactDebugCurrentFrame = {};
18289

Callers 3

onlyChildFunction · 0.70
validateChildKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected