3 ms·
I would say it depends on if your app is more consumery (react) or enterprisey (angular). React will give you better performance and server side rendering. It
by poof131 11y ago
I would say it depends on if your app is more consumery (react) or enterprisey (angular).
React will give you better performance and server side rendering. It mixes the view in the javascript which can be a little off to some.
Angular will give you a larger framework with two way data binding and likely faster dev cycles. There is a roadmap to 2, but until then no server side rendering and issues with performance if you aren’t careful.
- antoaravinth 11y agoThanks for your input. One quick question, learning curve for angular and react will be?
- hex13 11y agoAngular - Hello World is super easy but as you go deeper in Angular you become overhelmed by its complexity (mostly accidental) and limited by it. You will constantly think "how do I do this in Angular way" and after searching Stack Overflow you often end up doing some creative hacks to overcome Angular limitations. And debugging in Angular is hard, even error messages are super cryptic. React - Hello World is also super easy but it's good to know about ES6, Gulp/Grunt and Babel (it's not necessary though. You will have just more syntax sugar). As you go deeper in React you’ll have to get familiar with recommended architecture and principles for React (flux architecture, unidirectional data flow, immutability etc.) and because React is only view/rendering part, you probably will be wiring React with something else (e.g. Redux or other library for keeping state and dispatch actions). In other words: using Angular you'll have to deal with complexity of framework API but app architecture will be determined and forced by Angular. So probably you don't have to be good at programming to do Angular. Using React you’ll have to understand its architecture and functional(immutable/without side effects) programming, but API itself is super simple. And there are super helpful error messages if you mess up something.
- antoaravinth 11y agoThats an very good comparison. Thanks for it!
- hex13 11y ago"Angular will give you (...) likely faster dev cycles." Faster dev cycles than React? Why do you think so? Maintaining/developing every application can be pain in the ass because of its complexity. Speed of development cycles depend not only on technology stack, but also on good architecture, quality of code, inter-team communication and even a proper build scripts. Off course framework also plays it part, but I don't know if Angular really is better to develop in. Actually I think that developing in Angular 1.* is pretty cumbersome and there is constant need of creation creative hacks.