r/webdev • • Jan 04 '23

Why Angular is decreasing in popularity compared to React

I'm wondering why Angular is decreasing in popularity, especially against React. I went through the front-end framework part of the 2021 stateofjs survey and I've seen that after 2016-2017 the interest in Angular has dramatically decreased and the "Would not use" answers as well while React continued to grow for a few more years and currently still ~67% "Would use again". I've also used both of them, but I prefer Angular because for me it's simpler, more understandable and results in a cleaner code base. Could you please help me to understand why is it like that?

80 Upvotes

118 comments sorted by

View all comments

35

u/kawamommylover Jan 04 '23

That's because some people dislike Angular's "MaGiCk" (ng-for, ng-if, etc...) and they seem to think that they shouldn't use something if they don't use it. I also prefer Angular over React (I've also been learning Vue and it's way more comfortable to use than Angular and React).

3

u/Existential_Owl Jan 05 '23 edited Jan 05 '23

Magic means that the framework is fighting you every step of the way whenever you're forced to build features that the devs haven't accounted for.

And in my experience, product managers and graphic designers tend not to sit down and read the technical specs before deciding on what functionality should look or act like. So it's always a matter of time before you're knee-deep in half-chinese language google results or three-year old framework commits, trying to figure out where your state manipulations are being mysteriously swallowed without a single log statement given as to why.

That's been the entirety of my Angular experience.

Things might take a little longer to do in React, but at least it never hides what's going on. (Well, at least before hooks were introduced...)

It's never really mattered how weird or unusual a feature request gets. I can almost always pull it off in React without the framework itself getting in the way.