From 3b074c301c92871e917a935c56da7c8e1cc761b8 Mon Sep 17 00:00:00 2001 From: Isabelle Viktoria Maciohsek Date: Sun, 6 Sep 2020 14:46:23 +0300 Subject: [PATCH] Update Ticker --- snippets/Ticker.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/snippets/Ticker.md b/snippets/Ticker.md index fd165d129..636e2e5a4 100644 --- a/snippets/Ticker.md +++ b/snippets/Ticker.md @@ -6,25 +6,25 @@ tags: components,state,beginner Renders a ticker component. - Use the `React.useState()` hook to initialize the `ticker` state variable to `0`. -- Define two methods, `tick` and `reset`, that will periodically increment `timer` based on `interval` and reset `interval` respectively. +- Define two methods, `tick` and `reset`, that will periodically increment `timer` based on `intervalId` and reset `intervalId` respectively. - Return a `
` with two `
); -} +}; ``` ```jsx