Pregunta de entrevista de Capgimini

Lifecycle method in reactjs in class based and functional