MCPcopy Create free account
hub / github.com/clayrisser/create-react-renderer / shouldSetTextContent

Function shouldSetTextContent

phaseI/src/reconciler.ts:152–156  ·  view source on GitHub ↗
(_type: Type, props: Props)

Source from the content-addressed store, hash-verified

150
151 shouldSetTextContent(_type: Type, props: Props): boolean {
152 log.debug("shouldSetTextContent");
153 // this is used to determine if the fiber is a text fiber
154 if (typeof props.children === "string") return true;
155 return false;
156 },
157
158 getRootHostContext(_rootContainerInstance: Container): HostContext {
159 log.debug("getRootHostContext");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected