Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
28
export
async
function
increment(n) {
29
// Test loading state
30
await
sleep(1000);
31
return
n + 1;
32
}
Callers
7
ReactDOMTestSelectors-test.js
File · 0.50
ReactDOMForm-test.js
File · 0.50
ReactHooksWithNoopRenderer-test.js
File · 0.50
Counter
Function · 0.50
ReactAsyncActions-test.js
File · 0.50
useEffectEvent-test.js
File · 0.50
Counter
Function · 0.50
Calls
1
sleep
Function · 0.70
Tested by
2
Counter
Function · 0.40
Counter
Function · 0.40