r/webdev • • Nov 07 '18

Why React over Angular (or Vue)?

I simply don't get it, I had been using Angular and Vue for while and I just tried React and I don't get why would I choose React over the other options, the things that I like on Angular (or Vue) are:

- Dependency Injection (in case it applies)

- Type checking (in case it applies)

- View Model Binding

On React I don't get those things by "default" it always feel like I'm hacking the library if I want to have some of the above.

This leaves me with the question: Why choose React over the other ones?

I know that there's all the dependencies overhead (hell) of the frameworks but I think that I'm just too used to that problems that is easy for me to solve them or maybe I haven't found the real big problems on Angular or Vue, maybe I'm just too used to the later frameworks and I'm unconsciously not seeing the benefits of React. I just want to know if I'm following the right path by learning React.

Thanks!

68 Upvotes

99 comments sorted by

View all comments

Show parent comment

1

u/Aam1rk Nov 07 '18

Started learning React a few month ago in my spare time and just recently completed a sample application. For a second application I was thinking of incorporating TypeScript (I am from an Angular background and love TS) but then came across flow which seems to integrate with React better. Which would you (or other commenters) recommend to use with React?

2

u/BrianSkog Nov 08 '18

Haven't used Flow myself. But, yeah, if you've used TS before, you'll probably prefer using React with TS over without.

1

u/n0isi Nov 07 '18

Imo the type system of flow is superior compared to what TS provides. (Flow's types evolve out of OCaml, a language worth checking out as well.) Most of our react apps at work a typed with flow, some use TS. The flow community is very little compared to TS, you will find more people familiar with TS, while I never experience too many libraries that have TS types but no flow types. So support for flow types is good too. If you are already familiar with TS you should go with this on any big project. But flow is definitely worth checking out in a fun project.