MCPcopy Create free account
hub / github.com/microsoft/SandDance / shouldSetTextContent

Function shouldSetTextContent

docs/external/js/react-dom.development.js:7638–7640  ·  view source on GitHub ↗
(type, props)

Source from the content-addressed store, hash-verified

7636 return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
7637 }
7638 function shouldSetTextContent(type, props) {
7639 return type === 'textarea' || type === 'option' || type === 'noscript' || typeof props.children === 'string' || typeof props.children === 'number' || typeof props.dangerouslySetInnerHTML === 'object' && props.dangerouslySetInnerHTML !== null && props.dangerouslySetInnerHTML.__html != null;
7640 }
7641 function shouldDeprioritizeSubtree(type, props) {
7642 return !!props.hidden;
7643 }

Callers 2

popHydrationStateFunction · 0.85
updateHostComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected