concept current timer in category react
appears as: current timer

This is an excerpt from Manning's book React Hooks in Action.
We’ll use timers to schedule when the component should move on to the next bookable. If the user switches groups, automatically moving the selected bookable to the first in the new group, we have to cancel the current timer and set up a new one to give the newly selected bookable its allotted time. But, we’re getting ahead of ourselves! One step at a time.