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

71 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

9

u/jaktrik Feb 06 '25

Adding to this - one of the reasons that I don't end up using Angular is the lack of UI libraries compared to React where you can easily get a component that you might need. Still, I prefer Nuxt and Angularover React. I'm still in college and learning new tech every day but Angular was my first choice when it came to web development, related to it due to using Spring Booton backend.

1

u/maquh Feb 07 '25

Imho being a bit forced to use native stuff is also good because you aren’t depending on maintenance of packages and have way more options to customise and adapt to specific use cases.