Re:Angular 2 Beta released
by Matthias247 on Tuesday December 15, 2015 @07:00PM
(#10741420)
let's be fair, Pipes can do a little bit more then pure functions. E.g. the async pipe which lets someone directly use Observables in the view is really helpful. And a simple function in combination with Observable.map() or Promise.then() won't bringt that functionality to React (you need to write lifecycle hooks or mixins, and in the end it would look similar to your construct.
It's not hard to see why. This code[0] from Angular 2 would just be a function in React:
There's also the fact that Angular is a framework, whereas React is a library. Those of us in JS land typically (but not always) prefer smaller libraries.[0] https://auth0.com/blog/2015/09/03/angular2-series-working-wi...