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

Function isValidElementType

docs/external/js/react.development.js:1527–1530  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

1525 }
1526
1527 function isValidElementType(type) {
1528 return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
1529 type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
1530 }
1531
1532 function memo(type, compare) {
1533 {

Callers 2

memoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected