MCPcopy Create free account
hub / github.com/reactjs/react-rails / hasValidRef

Function hasValidRef

lib/assets/react-source/development/react.js:962–974  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

960 }
961
962 function hasValidRef(config) {
963 {
964 if (hasOwnProperty.call(config, 'ref')) {
965 var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
966
967 if (getter && getter.isReactWarning) {
968 return false;
969 }
970 }
971 }
972
973 return config.ref !== undefined;
974 }
975
976 function hasValidKey(config) {
977 {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected