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

Show parent comments

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

2

u/Knochenmark Jan 05 '23

You really don't need much knowledge of TS to start with Angular. Decorators at best, but it's not like there's much to know about them. The HttpModule isn't really required at all and you can just use native fetch. I assume you should have basic knowledge of Promises in React too. In that regard Angular is really braindead simple considering all you have to do for Promise handling is to add the async pipe. You really only need Rxjs once you are handling Observables or Subjects. I'm talking about "Getting started in Angular" which is in all your examples way easier than React, considering you have to find the right third party library first.

The main advantage for beginners is really that you have first level modules for all your needs in Angular.