Sumo Logic interview question

What’s the difference between Class-Based and Functional Components?