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

Function AsyncText

packages/react-reconciler/src/__tests__/ReactUse-test.js:1106–1108  ·  view source on GitHub ↗
({promise})

Source from the content-addressed store, hash-verified

1104 ]);
1105
1106 function AsyncText({promise}) {
1107 return <Text text={use(promise)} />;
1108 }
1109
1110 const root = ReactNoop.createRoot();
1111 await act(() => {

Callers

nothing calls this directly

Calls 1

getAsyncTextFunction · 0.85

Tested by

no test coverage detected