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

Function isValidElement

code/controlled-uncontrolled/public/app.js:18278–18280  ·  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

18276 * @final
18277 */
18278function isValidElement(object) {
18279 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
18280}
18281
18282var ReactDebugCurrentFrame = {};
18283

Callers 3

onlyChildFunction · 0.70
validateChildKeysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected