H
H
HoHsi2016-02-14 16:44:53
Angular
HoHsi, 2016-02-14 16:44:53

Should I migrate from Angular 1.x to React?

Good afternoon!
I played with Angular for quite a long time, and it confuses me very much that it is possible to achieve isomorphism on it only through PhantomJS.
I wanted to switch to React, but they have hell (IMHO. I can’t speak for everyone, but in many ready-made projects that I have seen, they shove controllers and models right into the views), but it confuses me a lot that this is only V + this 500 kb of code + JQuery (again, IMHO, I just saw that everyone is shoving it).
I didn’t look at Angular 2, I just didn’t have time, but I heard that it can also server-render.
What is better to devote time to React or Angular 2 (I also looked at Ember, but it seems to me the same Angular 1.x)?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sergey, 2016-02-14
Protko @Fesor

to achieve isomorphism on it is possible only through PhantomJS.

Not only, if you google it, there have been a lot of attempts to screw up virtualdom, etc. but all this is a cast-iron.
There, as it were ... there are no models or controllers. React components are purely views. Data must come in from outside.
And if you are one of those who are very confused by the presence of HTML in a JS file - well ... try to somehow calm down and understand what is important, that there is a division into templates and logic, but that everything in one file is details. Personally , I do this in Angular and it seems very convenient to me.
jQuery why do you need it? There is also a virtual dom, jquery is not needed at all. For the sake of HTTP? There are separate libraries. Again, you can use the components of the second angular.
Ember is perhaps the best of the three, but there is little hype around it ... and therefore the community is smaller, but they generally have no problems with processes and infrastructure.

A
Anton Natarov, 2016-02-14
@HanDroid

And these are fundamentally different things. Angular is an MVC Framework and React is a rendering library. If you need server rendering, then react is used to the fullest, Angular 2 is still raw. But Angular was more productive, and then we'll see how ES6 enters.

Y
Y0Y, 2016-02-14
@Y0Y

Costs.
And please forget about jQuery.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question