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