MCPcopy
hub / github.com/facebook/react / pushTextInstance

Function pushTextInstance

packages/react-markup/src/ReactFizzConfigMarkup.js:148–157  ·  view source on GitHub ↗
(
  target: Array<Chunk | PrecomputedChunk>,
  text: string,
  renderState: RenderState,
  textEmbedded: boolean,
)

Source from the content-addressed store, hash-verified

146}
147
148export function pushTextInstance(
149 target: Array<Chunk | PrecomputedChunk>,
150 text: string,
151 renderState: RenderState,
152 textEmbedded: boolean,
153): boolean {
154 // Markup doesn't need any termination.
155 target.push(stringToChunk(escapeTextForBrowser(text)));
156 return false;
157}
158
159export function pushSegmentFinale(
160 target: Array<Chunk | PrecomputedChunk>,

Callers 1

retryNodeFunction · 0.90

Calls 3

stringToChunkFunction · 0.90
escapeTextForBrowserFunction · 0.85
pushMethod · 0.65

Tested by

no test coverage detected