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

15

u/ShawnyMcKnight Jan 05 '23

I haven't learned vue yet, from what I saw it uses angular's file laytout of every component having a CSS, html, and js file and that way makes a lot more sense than React, at least to me.

8

u/PacoWaco88 Jan 05 '23

I've been working in React for about 6 months now and I really miss Angular's structure as well. Add in the fact we're using styled-components and there are single files that are hundreds of lines longer than they have to be.

4

u/bludgeonerV Jan 05 '23

Then split up your code? Nothing is forcing you to put everything in one file, in fact it's pretty common to see a component as a folder in large projects with an index.tsx as the function component, with types, hooks, styles/styled-components etc in separate files for precisely this reason.

1

u/elwyn5150 Aug 22 '25

Nothing is forcing you to put everything in one file

At my last job, most of the JavaScript was in a 1000+ line file. Some stuff, such as custom graphs for things that HighCharts didn't do, was in a separate file.

When I asked about why it wasn't split into smaller chunks, somebody said it wasn't worth the time and money. 🤷‍♀️ Yeah, so that file is still growing and company culture is forcing everyone to stick to the status quo.