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

Function hasValidKey

code/styling/public/app.js:18677–18687  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

18675}
18676
18677function hasValidKey(config) {
18678 {
18679 if (hasOwnProperty.call(config, 'key')) {
18680 var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
18681 if (getter && getter.isReactWarning) {
18682 return false;
18683 }
18684 }
18685 }
18686 return config.key !== undefined;
18687}
18688
18689function defineKeyPropWarningGetter(props, displayName) {
18690 var warnAboutAccessingKey = function () {

Callers 2

createElementFunction · 0.70
cloneElementFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected