There was an error while loading. Please reload this page.
1 parent 66db689 commit 1644e78Copy full SHA for 1644e78
1 file changed
readme.md
@@ -38,7 +38,7 @@ const MyCommponent = () => {
38
39
useInterval(() => {
40
setStep(step - 1)
41
- }, step === 0 ? 1000 : null)
+ }, step === 0 ? null : 1000)
42
43
return <p>Countdown: {step}</p>
44
}
0 commit comments