What is the main difference between a functional and a class component in React?

Mark as favorite