Put in order · JavaScript and React course · Module 5: useEffect and Custom Hooks
Cleanup Function in useEffect
Arrange the cleanup syntax elements in useEffect from left to right:
Items to put in order
- return
- =>
- { clearInterval(id) }
- ()
You can check the correct answer by solving this task in the CodeWorlds game.