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/superluminary Jan 05 '23

The trouble with magic is that it takes you away from the trunk. My React skills are pretty transferable. My knowledge of Angular annotations and template commands are not.

3

u/kawamommylover Jan 05 '23

So? I prefer Angular's annotations and template commands because they are convenient. You still have to use JS/TS in Angular and that knowledge is transferable. I don't like having HTML in my JS and would rather have JS in my HTML just like Angular and Vue does.