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

Function createTextInstance

src/ink/reconciler.ts:360–372  ·  view source on GitHub ↗
(
    text: string,
    _root: DOMElement,
    hostContext: HostContext,
  )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

createTextNodeFunction · 0.85

Tested by

no test coverage detected