MCPcopy Create free account
hub / github.com/reactjs/react-rails / shouldSetTextContent

Function shouldSetTextContent

lib/assets/react-source/development/react.js:11210–11212  ·  view source on GitHub ↗
(type, props)

Source from the content-addressed store, hash-verified

11208 return diffProperties(domElement, type, oldProps, newProps, rootContainerInstance);
11209 }
11210 function shouldSetTextContent(type, props) {
11211 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;
11212 }
11213 function shouldDeprioritizeSubtree(type, props) {
11214 return !!props.hidden;
11215 }

Callers 2

popHydrationStateFunction · 0.85
updateHostComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected