ROKO Labs interview question

What does return statement in useEffect hook do?