MCPcopy Create free account
hub / github.com/krasimir/react-in-patterns / hasValidRef

Function hasValidRef

code/communication/public/app.js:18700–18710  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18698var specialPropRefWarningShown = void 0;
18699
18700function hasValidRef(config) {
18701 {
18702 if (hasOwnProperty.call(config, 'ref')) {
18703 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18704 if (getter && getter.isReactWarning) {
18705 return false;
18706 }
18707 }
18708 }
18709 return config.ref !== undefined;
18710}
18711
18712function hasValidKey(config) {
18713 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected