DEV Community

Discussion on: React: class components vs function components

Collapse
 
colocodes profile image
Damian Demasi

When I started learning React, I saw function components first, and then class components. But I think a better approach will be learning class components first, so then, when you learn function components, you will see why they exists and the advantages they have over the class components.

Collapse
 
omarpervez profile image
Omar Pervez

Yes, I think you are right.

Collapse
 
davido242 profile image
Monday David S.

Totally agree with you

Thread Thread
 
omarpervez profile image
Omar Pervez

We need to learn first Class component and then Functional Component