I want to know what I can do with class based components that I cannot do with function based

Viewed 30

I have started learning reactjs and I am loving it, my query is, is there anything I can do with class-based components that I can't with function based? I know the concept of classes in JS and I am pretty comfortable using classes but in react I felt that function-based components are much easier to learn.

2 Answers

Class components are also often used as singletons

Related