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

Function Counter

packages/react-reconciler/src/__tests__/ReactMemo-test.js:67–69  ·  view source on GitHub ↗
({count})

Source from the content-addressed store, hash-verified

65 describe(`${label}`, () => {
66 it('bails out on props equality', async () => {
67 function Counter({count}) {
68 return <Text text={count} />;
69 }
70 Counter = memo(Counter);
71
72 await act(() =>

Callers

nothing calls this directly

Calls 6

memoFunction · 0.85
waitForAllFunction · 0.85
readContextFunction · 0.70
renderMethod · 0.65
actFunction · 0.50
assertLogFunction · 0.50

Tested by

no test coverage detected