Hacker News new | past | comments | ask | show | jobs | submit login

We used Angular at Stampsy and it was a pain to learn and debug. React is awesome because it encourages very modular components, has very small API surface (you can go far with knowing 5 API methods, compare this to Angular insanity) and great out-of-the-box performance (which is possible to boost 5x if you use performance hooks like `shouldComponentUpdate`). React gets you very close to browser limits in terms of perf, while staying very maintainable. Moreover, it doesn't impose any kind of structure on your projects, and you can begin using it one component at a time (even inside Angular).

(I'm not affiliated, just a very happy user.)




Why do you say AngularJS was hard to debug? Also any insights around modularity - AngularJS directives vs ReactJS components?

I hear you about the API surface. Currentlu AngularJS has too many weird/new concepts.


Why I prefer React over Angular:

1. Two-way bindings complicate things because there is no single source of truth. (See http://vimeo.com/92687646 at 30:00)

2. Template/directive separation is superficial, in fact these are single concern and should be together.

3. Separation between `props` and `state`, as well as documenting `props` via `propTypes` encourages very natural modularity.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: