MCPcopy Create free account
hub / github.com/Lobos/react-ui / getRenderedNativeOrTextFromComponent

Function getRenderedNativeOrTextFromComponent

docs/lib/react.js:7290–7296  ·  view source on GitHub ↗

* Drill down (through composites and empty components) until we get a native or * native text component. * * This is pretty polymorphic but unavoidable with the current structure we have * for `_renderedChildren`.

(component)

Source from the content-addressed store, hash-verified

7288 * for `_renderedChildren`.
7289 */
7290function getRenderedNativeOrTextFromComponent(component) {
7291 var rendered;
7292 while (rendered = component._renderedComponent) {
7293 component = rendered;
7294 }
7295 return component;
7296}
7297
7298/**
7299 * Populate `_nativeNode` on the rendered native/text component with the given

Callers 2

precacheNodeFunction · 0.85
precacheChildNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…