(type, props, canUseEventSystem)
| 16095 | } |
| 16096 | |
| 16097 | var warnUnknownProperties = function (type, props, canUseEventSystem) { |
| 16098 | var unknownProps = []; |
| 16099 | for (var key in props) { |
| 16100 | var isValid = validateProperty$1(type, key, props[key], canUseEventSystem); |
| 16101 | if (!isValid) { |
| 16102 | unknownProps.push(key); |
| 16103 | } |
| 16104 | } |
| 16105 | |
| 16106 | var unknownPropString = unknownProps.map(function (prop) { |
| 16107 | return '`' + prop + '`'; |
| 16108 | }).join(', '); |
| 16109 | if (unknownProps.length === 1) { |
| 16110 | warning(false, 'Invalid value for prop %s on <%s> tag. Either remove it from the element, ' + 'or pass a string or number value to keep it in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$2()); |
| 16111 | } else if (unknownProps.length > 1) { |
| 16112 | warning(false, 'Invalid values for props %s on <%s> tag. Either remove them from the element, ' + 'or pass a string or number value to keep them in the DOM. ' + 'For details, see https://fb.me/react-attribute-behavior%s', unknownPropString, type, getStackAddendum$2()); |
| 16113 | } |
| 16114 | }; |
| 16115 | |
| 16116 | function validateProperties$2(type, props, canUseEventSystem) { |
| 16117 | if (isCustomComponent(type, props)) { |
no test coverage detected