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

Function hasValidRef

code/composition/public/app.js:18803–18813  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18801var specialPropRefWarningShown = void 0;
18802
18803function hasValidRef(config) {
18804 {
18805 if (hasOwnProperty.call(config, 'ref')) {
18806 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
18807 if (getter && getter.isReactWarning) {
18808 return false;
18809 }
18810 }
18811 }
18812 return config.ref !== undefined;
18813}
18814
18815function hasValidKey(config) {
18816 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected