Pregunta de entrevista de Catchpoint

Difference between class and functional components.