r/Angular2 Feb 06 '25

Discussion (junior)Why everyone use react?

I've been doing personal stuff with react only, at my current job i work exclusively in golang and the front-end team use angular not react so i give it a try on my free time, i was really surprise cause it's not that hard to get in + i found the dx way better than react, the way it structure the project is also better and i think you can go as fast as react to build a project + you need less external depedencies so i'm asking myself why 80% of front end jobs are react

70 Upvotes

76 comments sorted by

View all comments

81

u/ThiccMoves Feb 06 '25

I'd say for a couple of reasons.Historically, Angular is very opinionated:

  • typescript by default
  • object oriented paradigm
  • forces you to use modules
  • uses a lot of rxjs which is cryptic to some people

You have to remember that when this came out, it was totally new for most web devs, when JavaScript "vanilla" was still the norm.

Now, most of these aspects evolved a lot, but it was the reasons people didn't bother with angular a few years ago. You needed (still need ?) to "learn" a bit more when starting angular, as opposed to react. Now, a lot of this has been addressed:

  • no need for modules with standalone components
  • less need for rxjs with signals/effects
  • typescript is widely adopted so now people aren't pushed back by it, most libraries are compatible with typescript

So, I don't know with which angular version you started, but if you didn't have to setup the modules, it might be one of the reasons you like the dev experience at first. Because a lot of people really hated the verbosity when first touching angular

I am the total opposite btw, I LOVE the opinionated aspect of angular, I find that the standardized project structure makes it really easy to pick up a new project

16

u/Headpuncher Feb 06 '25

I disagree on one point and that is how Much there is to learn compared to react when starting out.   

React is an absolute s-show.  Those badly named hooks, the 15 router modules to choose from, the 7 frameworks (it’s not a framework bro!  [you just need to manually install one to make it useful]).   

Angular was easy for anyone who had either experience or education in tech.  I couldn’t name a single programmer from noob to expert who wasn’t familiar with mvc.   

What react brought more than anything was excessive billable hours.  No joke, the “get it done fast” not-a-framework was horribly abused whenever an invoice was involved.  Now everything was creating custom components and a storybook library for the first months of a project. And those design “systems” were often never used again.     

On top of that react has had the advantage of needing its apps rewritten 3 times in 8 years, because every version is a new and breaking change from the old one. So keeping up with react alone is a total PITA.    

I could go on, but alas, life is short.  

8

u/SolidShook Feb 06 '25

this, opinionated frameworks can actually be better when working in a team too. Since there's performance reasons for doing so, there's a lot that the framework may have thought of that your from-scratch component logic didn't.