(config)
| 86 | } |
| 87 | |
| 88 | function hasValidRef(config) { |
| 89 | if (__DEV__) { |
| 90 | if (hasOwnProperty.call(config, 'ref')) { |
| 91 | const getter = Object.getOwnPropertyDescriptor(config, 'ref').get; |
| 92 | if (getter && getter.isReactWarning) { |
| 93 | return false; |
| 94 | } |
| 95 | } |
| 96 | } |
| 97 | return config.ref !== undefined; |
| 98 | } |
| 99 | |
| 100 | function hasValidKey(config) { |
| 101 | if (__DEV__) { |