MCPcopy Index your code
hub / github.com/react/react / Child

Function Child

packages/react-reconciler/src/__tests__/ReactUse-test.js:317–319  ·  view source on GitHub ↗
({prefix})

Source from the content-addressed store, hash-verified

315 const promiseD = Promise.resolve('D');
316
317 function Child({prefix}) {
318 return <Text text={prefix + use(promiseC) + use(promiseD)} />;
319 }
320
321 function Parent() {
322 return <Child prefix={use(promiseA) + use(promiseB)} />;

Callers

nothing calls this directly

Calls 2

getAsyncTextFunction · 0.85
useEffectFunction · 0.50

Tested by

no test coverage detected