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

Function Foo

packages/react-dom/src/__tests__/ReactDOMFizzServer-test.js:8277–8280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8275
8276 it('should NOT warn for using generator functions as components', async () => {
8277 function* Foo() {
8278 yield <h1 key="1">Hello</h1>;
8279 yield <h1 key="2">World</h1>;
8280 }
8281
8282 await act(() => {
8283 const {pipe} = renderToPipeableStream(<Foo />);

Callers

nothing calls this directly

Calls 14

getVisibleChildrenFunction · 0.90
waitForAllFunction · 0.85
getChildrenFunction · 0.70
actFunction · 0.70
renderToPipeableStreamFunction · 0.70
normalizeCodeLocInfoFunction · 0.70
onErrorFunction · 0.70
resolveFunction · 0.70
onRecoverableErrorFunction · 0.70
toBeMethod · 0.65
toThrowMethod · 0.65
toEqualMethod · 0.65

Tested by

no test coverage detected