Visa Inc. Interview Question

What is a functional vs class component?