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

Function createFiberFromText

packages/react-reconciler/src/ReactFiber.js:902–910  ·  view source on GitHub ↗
(
  content: string,
  mode: TypeOfMode,
  lanes: Lanes,
)

Source from the content-addressed store, hash-verified

900}
901
902export function createFiberFromText(
903 content: string,
904 mode: TypeOfMode,
905 lanes: Lanes,
906): Fiber {
907 const fiber = createFiber(HostText, content, null, mode);
908 fiber.lanes = lanes;
909 return fiber;
910}
911
912export function createFiberFromDehydratedFragment(
913 dehydratedNode: SuspenseInstance | ActivityInstance,

Callers 3

updateTextNodeFunction · 0.90
createChildFunction · 0.90
reconcileSingleTextNodeFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected