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

Function isValidElement

code/new-context-api/public/app.js:18315–18317  ·  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

18313 * @final
18314 */
18315function isValidElement(object) {
18316 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
18317}
18318
18319var ReactDebugCurrentFrame = {};
18320

Callers 3

onlyChildFunction · 0.70
validateChildKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected