Pregunta de entrevista de Akbank

-How to apply lifecycle methods in functional components?