(tag, props, getStack)
| 14468 | var HTML$1 = '__html'; |
| 14469 | |
| 14470 | function assertValidProps(tag, props, getStack) { |
| 14471 | if (!props) { |
| 14472 | return; |
| 14473 | } |
| 14474 | // Note the use of `==` which checks for null or undefined. |
| 14475 | if (voidElementTags[tag]) { |
| 14476 | !(props.children == null && props.dangerouslySetInnerHTML == null) ? invariant(false, '%s is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.%s', tag, getStack()) : void 0; |
| 14477 | } |
| 14478 | if (props.dangerouslySetInnerHTML != null) { |
| 14479 | !(props.children == null) ? invariant(false, 'Can only set one of `children` or `props.dangerouslySetInnerHTML`.') : void 0; |
| 14480 | !(typeof props.dangerouslySetInnerHTML === 'object' && HTML$1 in props.dangerouslySetInnerHTML) ? invariant(false, '`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://fb.me/react-invariant-dangerously-set-inner-html for more information.') : void 0; |
| 14481 | } |
| 14482 | { |
| 14483 | warning(props.suppressContentEditableWarning || !props.contentEditable || props.children == null, 'A component is `contentEditable` and contains `children` managed by ' + 'React. It is now your responsibility to guarantee that none of ' + 'those nodes are unexpectedly modified or duplicated. This is ' + 'probably not intentional.%s', getStack()); |
| 14484 | } |
| 14485 | !(props.style == null || typeof props.style === 'object') ? invariant(false, 'The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + \'em\'}} when using JSX.%s', getStack()) : void 0; |
| 14486 | } |
| 14487 | |
| 14488 | function isCustomComponent(tagName, props) { |
| 14489 | if (tagName.indexOf('-') === -1) { |
no test coverage detected