MCPcopy Create free account
hub / github.com/reactjs/react-rails / isValidElement

Function isValidElement

lib/assets/react-source/development/react.js:1288–1290  ·  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

1286 */
1287
1288 function isValidElement(object) {
1289 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1290 }
1291
1292 var SEPARATOR = '.';
1293 var SUBSEPARATOR = ':';

Callers 6

onlyChildFunction · 0.70
validateChildKeysFunction · 0.70
mixSpecIntoComponentFunction · 0.70
validateFunction · 0.70
isNodeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected