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

Function hasValidRef

code/styling/public/app.js:18665–18675  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18663var specialPropRefWarningShown = void 0;
18664
18665function hasValidRef(config) {
18666 {
18667 if (hasOwnProperty.call(config, 'ref')) {
18668 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18669 if (getter && getter.isReactWarning) {
18670 return false;
18671 }
18672 }
18673 }
18674 return config.ref !== undefined;
18675}
18676
18677function hasValidKey(config) {
18678 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected