MCPcopy Index your code
hub / github.com/microsoft/SandDance / hasValidRef

Function hasValidRef

docs/external/js/react.development.js:656–668  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

654 }
655
656 function hasValidRef(config) {
657 {
658 if (hasOwnProperty$1.call(config, 'ref')) {
659 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
660
661 if (getter && getter.isReactWarning) {
662 return false;
663 }
664 }
665 }
666
667 return config.ref !== undefined;
668 }
669
670 function hasValidKey(config) {
671 {

Callers 2

createElementFunction · 0.85
cloneElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected