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

Function isValidElement

lib/assets/react-source/development/react-server.js:1289–1291  ·  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

1287 */
1288
1289 function isValidElement(object) {
1290 return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1291 }
1292
1293 var SEPARATOR = '.';
1294 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