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

Function hasValidKey

code/presentational-and-container/public/app.js:18550–18560  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18548}
18549
18550function hasValidKey(config) {
18551 {
18552 if (hasOwnProperty.call(config, 'key')) {
18553 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18554 if (getter && getter.isReactWarning) {
18555 return false;
18556 }
18557 }
18558 }
18559 return config.key !== undefined;
18560}
18561
18562function defineKeyPropWarningGetter(props, displayName) {
18563 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected