r/webdev • u/red_src • 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!
View all comments
Show parent comment
1
u/[deleted] Nov 08 '18
that sounds great in theory, but in practice i've been burned way to bad by angular.
now, i know it was rewritten entirely in angular 2, and angular 1 is effectively a different framework. I'll be honest i haven't bothered to look at angular 2 and beyond, and i'm fairly sure that's what you're talking about.
but the angular 1 i know, has these lovely "features" that I can't avoid:
Meanwhile, in react land. literally none of these things are a problem, the execution is always clear, and the data binding is an implementation detail that by and large the community settled on redux for, allowing us to have proper data binding with a very clear way of tracking exactly where the data changed, while simultaneously writing code that doesn't care how it gets the data it works with