Moving from Classes to Function Components (useState, useEffect) - Cleaning up Side Effects in useEffect