Crediwatch interview question

What is the difference between functional components and class components?