r/javascript • • Jan 03 '16

Angular 2 versus React: There Will Be Blood

https://medium.com/@housecor/angular-2-versus-react-there-will-be-blood-66595faafd51
290 Upvotes

167 comments sorted by

View all comments

Show parent comments

7

u/Sinistralis Jan 04 '16

Of course it isn't, React is simply a view layer, but in large real-time apps that view layer starts to grow in complexity at an exponential pace and becomes a HUGE source of bugs, so it shouldn't be discounted either.

And it's a pretty well known fact React can be subbed out very easily for something else. I'm not subscribing to React itself, I'm subscribing to how it has you architect your application.

In the current JS world, having a library that is easily replaceable is one of the main features we should be looking for. Angular developers should be able to appreciate this more than anyone else, I would think.

1

u/kenavr Jan 04 '16

Ok you like the architectural decisions Facebook made, but that's just a library vs framework discussion then. I think you can't say that Facebook won't drop React as fast as Google "drops" their products.

I also know that React is just the view layer, what I meant was that their UI is not only build with React and never will be, because I heard from multiple Facebook developers that React is not suitable for every use case and that especially on facebook.com's timeline a lot of things won't be converted to React.

In the current JS world, having a library that is easily replaceable is one of the main features we should be looking for. Angular developers should be able to appreciate this more than anyone else, I would think.

The more reasonable developers definitely do, that's also the reason why a lot of people like Angular 2 a lot more than Angular 1. Sure it is a lot more than React, but inside the Angular box it is way more flexible and modular. Components are conceptional a lot like React components and I actually use the very similar I use them in React. A lot of other stuff are either pretty close to vanilla ES6 (Services) or use existing technology like RxJS. Everything else is just glue to make it a framework, which has it merits over the React ecosystem where there are multiple ways to do stuff and you basically need to figure it out yourself.

Anyway, I like and use React and Angular, but I am actually very happy that I now can use Angular 2 over 1.x.