DEV Community

Discussion on: How to be a better react Developer.

Collapse
 
alexgurr profile image
Alex Gurr • Edited

You went straight from 1 to 3 😊 all of this is pretty good. Would disagree that functional components are the future. I see so many people talk about hooks over classes. It all depends on the situation and the complexity of the component. Ever seen a complex component or something like a form with hooks? Awful. Messy. Impossible to follow.

Collapse
 
siradji profile image
Suraj Auwal

Lol I haven't seen that. Thanks for pointing out.

I don't know understand what you mean by complex component. In context of form, I don't see how classes with be more beneficial than functional component.
I think it all depends on preference and like you said, situation.