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

Function hasValidRef

code/third-party/public/app.js:17898–17908  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

17896var specialPropRefWarningShown = void 0;
17897
17898function hasValidRef(config) {
17899 {
17900 if (hasOwnProperty.call(config, 'ref')) {
17901 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
17902 if (getter && getter.isReactWarning) {
17903 return false;
17904 }
17905 }
17906 }
17907 return config.ref !== undefined;
17908}
17909
17910function hasValidKey(config) {
17911 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected