Pergunta de entrevista da empresa Rydeu

What are the differences between functional and class components?