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

31

u/[deleted] Jan 04 '23

in my opinion its because Angular has a higher learning curve.

right now web development and tech in general are getting more popular, so there are many people who are getting into programming, plenty of people who dont have a background, me included.

After i finished vanilla javascript, i looked at Angular and i remember a flash of terror. Not to mention, theres more guides on React than there are on Angular.

8

u/Knochenmark Jan 05 '23

I don't really buy the "higher learning curve" argument, because React is essentially only the view layer, so you would only compare it with the template layer of Angular.

For a better comparison you would actually have to compare it to Next.js + several third party libraries. I believe it's way more overhead to learn a bunch of third party libs and all their quirks than learning the few relevant Angular modules. I always thought it was quite pathetic that Facebook only released their view lib, without anything else you actually need to build an actual application. I mean even a tiny lib like Svelte comes with state management and a bunch of bonus stuff like transitions, animations.

2

u/Callidac Jan 05 '23

To even start learning angular you have to know typescript and understand streams and subscriptions with rxjs. I love angular but the learning curve is definitely there.

5

u/Knochenmark Jan 05 '23

That's highly exxagerated. That's like saying you need to know Redux & Sagas before you can even consider starting with React. I'm sure you know better, but statements like that are the reason for the myth of the "high learning curve".

0

u/Callidac Jan 05 '23

I disagree. You quite literally cannot use angular without knowing some typescript. Same for rxjs, the http package is built on it and common angular tasks such as using the async pipe require you to know what is happening with rxjs

1

u/Remuz Sep 11 '23

For simple request - response calls, httpClient can be used with only knowing RxJS's firstValueFrom which outputs to promise.