Pregunta de entrevista de JPMorganChase

How do you execute something before a component unmounts in React?