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

Function increment

fixtures/flight/src/actions.js:28–32  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

26}
27
28export async function increment(n) {
29 // Test loading state
30 await sleep(1000);
31 return n + 1;
32}

Callers 7

CounterFunction · 0.50
CounterFunction · 0.50

Calls 1

sleepFunction · 0.70

Tested by 2

CounterFunction · 0.40
CounterFunction · 0.40