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

Function sleep

fixtures/view-transition/src/components/Page.js:23–25  ·  view source on GitHub ↗
(ms)

Source from the content-addressed store, hash-verified

21import NestedReveal from './NestedReveal.js';
22
23async function sleep(ms) {
24 return new Promise(resolve => setTimeout(resolve, ms));
25}
26
27const a = (
28 <div key="a">

Callers 2

SuspendFunction · 0.70
Page.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected