MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / createTextInstance

Function createTextInstance

source code/ink/reconciler.ts:362–374  ·  view source on GitHub ↗
(
    text: string,
    _root: DOMElement,
    hostContext: HostContext,
  )

Source from the content-addressed store, hash-verified

360 return node
361 },
362 createTextInstance(
363 text: string,
364 _root: DOMElement,
365 hostContext: HostContext,
366 ): TextNode {
367 if (!hostContext.isInsideText) {
368 throw new Error(
369 `Text string "${text}" must be rendered inside <Text> component`,
370 )
371 }
372
373 return createTextNode(text)
374 },
375 resetTextContent() {},
376 hideTextInstance(node) {
377 setTextNodeValue(node, '')

Callers

nothing calls this directly

Calls 1

createTextNodeFunction · 0.85

Tested by

no test coverage detected