MCPcopy
hub / github.com/facebook/react / isValidElement

Function isValidElement

packages/react/src/jsx/ReactJSXElement.js:826–832  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

824 * @final
825 */
826export function isValidElement(object) {
827 return (
828 typeof object === 'object' &&
829 object !== null &&
830 object.$$typeof === REACT_ELEMENT_TYPE
831 );
832}
833
834export function isLazyType(object) {
835 return (

Callers 4

mapIntoArrayFunction · 0.90
onlyChildFunction · 0.90
validateChildKeysFunction · 0.70
recurFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected