4 ms·
Angular vs React isn't a great comparison. For all but the most trivial of apps you will need to use a lot of ancillary libraries. It is more like: * React *
by megaman821 12y ago
Angular vs React isn't a great comparison. For all but the most trivial of apps you will need to use a lot of ancillary libraries.
It is more like:
* React
* React-Router
* JQuery (for the AJAX functionality)
* A library for or to help build Observables like EventEmitter, RxJS, or BaconJS
* Immutable.js is useful in many projects
There are also many patterns that have cropped up with React like Flux or Container-Component.
For a newbie, getting started with Angular is much easier.
- hajile 12y agoAngular really needs ui-router, lodash/ramda, and jquery (for more than just AJAX). React doesn't need a router for many uses (extending existing sites), but does need lodash/ramda and an AJAX library. ImmutableJS is useful for both angular and react (as is rxjs/baconjs). For a beginner, I would simply say React, Reflux, Ramda, and jQuery will do 90% of the things. Learning all four of these libraries (they probably already know jQuery) will take less time than Angular and be more flexible if they want to swap one out later. Finally, adding these is much easier with commonJS than the angular dependency injection (often on top of commonJS).
- megaman821 12y agoI like all the libraries that you end up having to use with React (and I end up using Lodash with everything anyway). I also think React is a better solution most of the time, but it requires knowledge of the JavaScript ecosystem to grab all the libraries you need whereas Angular does not. As a newbie it can be hard to identify not only what libraries you need but also what is the best of breed.