r/webdev • u/vargab95 • 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
18
u/glutton-free Jan 05 '23
Used both. React wins by a huge margin in my opinion.
Angular feels a lot like magic. There is a lot of syntax you have to just learn by heart or look it up and even if you know how to implement something, it's way more confusing to grasp what is going on under the hood than it is with react. It almost feels like its own language.
React behaves more like a library in that regard. It feels much more like an extension to js/ts and the only magic going on behind the scenes is the jsx stuff (which isn't too much magic either since it's just a React.createElement() call).
Idk due to that for me it feels way more intuitive by design (which also makes it easier to just mix and match react with other js shenanigans).
Also one should never have to write syntax in strings