MCPcopy Create free account
hub / github.com/microsoft/SandDance / isValidElement

Function isValidElement

docs/external/js/react.development.js:982–984  ·  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 ReactElement. * @final

(object)

Source from the content-addressed store, hash-verified

980 */
981
982 function isValidElement(object) {
983 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
984 }
985
986 var SEPARATOR = '.';
987 var SUBSEPARATOR = ':';

Callers 3

onlyChildFunction · 0.85
validateChildKeysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected