Skip to content

Instantly share code, notes, and snippets.

@romgrk
Created October 30, 2024 05:36
Show Gist options
  • Save romgrk/fcb1b3b72bb09028d25d2a8afb53af82 to your computer and use it in GitHub Desktop.
Save romgrk/fcb1b3b72bb09028d25d2a8afb53af82 to your computer and use it in GitHub Desktop.
Simulated slow react component
const WAIT_DURATION = 2
function Slow() {
const start = Date.now()
while ((Date.now() - start) < WAIT_DURATION) {}
return (
<span>slow</span>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment