Pregunta de entrevista de Prodigal AI Technologies

Q: What is the difference between class-based and function-based components in React?