| 18701 | } |
| 18702 | |
| 18703 | function defineRefPropWarningGetter(props, displayName) { |
| 18704 | var warnAboutAccessingRef = function () { |
| 18705 | if (!specialPropRefWarningShown) { |
| 18706 | specialPropRefWarningShown = true; |
| 18707 | warning(false, '%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://fb.me/react-special-props)', displayName); |
| 18708 | } |
| 18709 | }; |
| 18710 | warnAboutAccessingRef.isReactWarning = true; |
| 18711 | Object.defineProperty(props, 'ref', { |
| 18712 | get: warnAboutAccessingRef, |
| 18713 | configurable: true |
| 18714 | }); |
| 18715 | } |
| 18716 | |
| 18717 | /** |
| 18718 | * Factory method to create a new React element. This no longer adheres to |