Recently, I started learning React and I have built both functional and class components. I hear from the grapevine that functional components are preferred since they are simpler and have performance advantages, but class components are more powerful.
Can somebody explain to me the advantage of using a class component in lieu of a functional component in React?