MCPcopy Index your code
hub / github.com/codeaashu/claude-code / render

Method render

src/ink/ink.tsx:1442–1454  ·  view source on GitHub ↗
(node: ReactNode)

Source from the content-addressed store, hash-verified

1440 this.cursorDeclaration = decl;
1441 };
1442 render(node: ReactNode): void {
1443 this.currentNode = node;
1444 const tree = <App stdin={this.options.stdin} stdout={this.options.stdout} stderr={this.options.stderr} exitOnCtrlC={this.options.exitOnCtrlC} onExit={this.unmount} terminalColumns={this.terminalColumns} terminalRows={this.terminalRows} selection={this.selection} onSelectionChange={this.notifySelectionChange} onClickAt={this.dispatchClick} onHoverAt={this.dispatchHover} getHyperlinkAt={this.getHyperlinkAt} onOpenHyperlink={this.openHyperlink} onMultiClick={this.handleMultiClick} onSelectionDrag={this.handleSelectionDrag} onStdinResume={this.reassertTerminalModes} onCursorDeclaration={this.setCursorDeclaration} dispatchKeyboardEvent={this.dispatchKeyboardEvent}>
1445 <TerminalWriteProvider value={this.writeRaw}>
1446 {node}
1447 </TerminalWriteProvider>
1448 </App>;
1449
1450 // @ts-expect-error updateContainerSync exists in react-reconciler but not in @types/react-reconciler
1451 reconciler.updateContainerSync(tree, this.container, null, noop);
1452 // @ts-expect-error flushSyncWork exists in react-reconciler but not in @types/react-reconciler
1453 reconciler.flushSyncWork();
1454 }
1455 unmount(error?: Error | number | null): void {
1456 if (this.isUnmounted) {
1457 return;

Callers 9

createRootFunction · 0.95
InkClass · 0.95
createRootFunction · 0.45
showDialogFunction · 0.45
exitWithMessageFunction · 0.45
renderAndRunFunction · 0.45
renderSyncFunction · 0.45
onRenderMethod · 0.45
useTextInputFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected