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

Function createTextInstance

lib/assets/react-source/development/react.js:11216–11225  ·  view source on GitHub ↗
(text, rootContainerInstance, hostContext, internalInstanceHandle)

Source from the content-addressed store, hash-verified

11214 return !!props.hidden;
11215 }
11216 function createTextInstance(text, rootContainerInstance, hostContext, internalInstanceHandle) {
11217 {
11218 var hostContextDev = hostContext;
11219 validateDOMNesting(null, text, hostContextDev.ancestorInfo);
11220 }
11221
11222 var textNode = createTextNode(text, rootContainerInstance);
11223 precacheFiberNode(internalInstanceHandle, textNode);
11224 return textNode;
11225 }
11226 // if a component just imports ReactDOM (e.g. for findDOMNode).
11227 // Some environments might not have setTimeout or clearTimeout.
11228

Callers 1

completeWorkFunction · 0.85

Calls 3

validateDOMNestingFunction · 0.85
createTextNodeFunction · 0.85
precacheFiberNodeFunction · 0.85

Tested by

no test coverage detected