From 751ad87d305ed0c675b59c695df5581fd2438e87 Mon Sep 17 00:00:00 2001 From: stereobooster Date: Thu, 6 Jun 2019 22:57:49 +0200 Subject: [PATCH] Update CountDown --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 00ca61163..155bd00f2 100644 --- a/README.md +++ b/README.md @@ -1047,7 +1047,7 @@ function CountDown({ hours = 0, minutes = 0, seconds = 0 }) { React.useEffect(() => { let timerID = setInterval(() => tick(), 1000); return () => clearInterval(timerID); - }); + }, [tick]); return (