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.
I am new dev in react. I am learning class component. Is that okay for me?
You'll need to learn both anyways, it is quite frequent to find projects that mix the two methodologies.
Thank you Jeysson, I think it will help me lot in my react learning
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.
Yes, I think you are right.
Totally agree with you
We need to learn first Class component and then Functional Component