Pergunta de entrevista da empresa Cognizant

How componentWillUnmount works in React Application?