Lemnisk interview question

Can you compare functional components and class components in React?