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

Function hasValidKey

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

Source from the content-addressed store, hash-verified

974 }
975
976 function hasValidKey(config) {
977 {
978 if (hasOwnProperty.call(config, 'key')) {
979 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
980
981 if (getter && getter.isReactWarning) {
982 return false;
983 }
984 }
985 }
986
987 return config.key !== undefined;
988 }
989
990 function defineKeyPropWarningGetter(props, displayName) {
991 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected