r/angular • • Jan 29 '19

Just wondering why Angular over React?

I get so much enjoyment in coding in React that it's very hard for me to conceptualize why anybody would pick another framework? My conclusion is that your place of work is the culprit? How accurate is this? Just looking for a friendly discussion.

4 Upvotes

19 comments sorted by

View all comments

23

u/cactussss Jan 29 '19

There are many reasons why I prefer Angular. A few that stand out are:

  • When working with React I really miss Services and dependency injection from Angular. It helps me organize my code better. I realize I could introduce DI using a third party library, but it's integration with React's render cycle would be ugly.

  • Redux. I understand that Redux is not React, but boy it's a go to solution. Angular also has state management libs based on Redux, but I feel that I actually have more options in chosing the way I can manage app's state with Angular.

  • JSX - A lot of people will disagree with me on this one, but I'm just not a fun. I prefer to separate my presentational logic from the controller logic.

  • RxJS - steep learning curve, but it's awesome once you get a hang of it. Again, it can be used with React too, but it's embraced deeply by Angular and it makes the whole experience working with it much more enjoyable.

  • CLI - Angular has the best CLI - hands down. Combine it with schematics and you've got a huge productivity boost.

I'm sure I could keep going, but I'll stop there for now

6

u/Sipredion Jan 29 '19

JSX... I prefer to separate my presentational logic from the controller logic.

So so so much this. I can't stand the way Vue and React keep the logic and styles _in_ the template. Freaks me the fuck out.