Click in order · JavaScript and React course · Module 5: useEffect and Custom Hooks

Cleanup Function in useEffect

Arrange the useEffect syntax with a cleanup function:

Items to click

  • document.title = 'Misja';
  • document.title = 'React';
  • };
  • }, []);
  • useEffect(() => {
  • return () => {

You can check the correct answer by solving this task in the CodeWorlds game.