MCPcopy
hub / github.com/react/react / App

Function App

packages/react-dom/src/__tests__/ReactDOMServerIntegrationHooks-test.js:420–426  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

418
419 itRenders('with a warning for useState inside useMemo', async render => {
420 function App() {
421 useMemo(() => {
422 useState();
423 return 0;
424 });
425 return 'hi';
426 }
427 const domNode = await render(
428 <App />,
429 render === clientRenderOnBadMarkup

Callers

nothing calls this directly

Calls 9

clearLogFunction · 0.85
dispatchFunction · 0.70
renderFunction · 0.70
toEqualMethod · 0.65
toBeMethod · 0.65
useMemoFunction · 0.50
useStateFunction · 0.50
useRefFunction · 0.50
useReducerFunction · 0.50

Tested by

no test coverage detected