Click in order · JavaScript and React course · Module 5: useEffect and Custom Hooks
Clearing a Timer in useEffect
Arrange the cleanup function for a timer in useEffect:
Items to click
- clearInterval
- timerId
- );
- (
- () =>
- return
You can check the correct answer by solving this task in the CodeWorlds game.