Pergunta de entrevista da empresa Catchpoint

Difference between class and functional components.