The recent front-end hot, a variety of MVC framework endless, great birds meaning.
This "Hundred birds", the number of Reactjs especially fiery, born Noble, a launch on the attention! Facebook has since announced its support for Android and Apple-native applications, which is a timely rain for many companies that are troubled by multiple platforms.
But is that really the case? I have said in the article "How to choose a framework" that, as programmers, there is no resistance to some words, such as stockings, wax drops, whips ...
Sorry, wrong, is a cross-platform, enterprise-class solutions, technical specifications ...
If you choose a frame, just look at the official introduction, or see Baidu ranked first in the soft Wen, then you can only hope that their luck must be very good, good to step on the dog excrement, in order to choose the right frame.
I as a true programmer, heard Reactjs so hot, also unavoidably itch unbearable, after some study, finally understand Reactjs principle. So let's talk about my views on Reactjs.
Span style= "FONT-SIZE:14PT;" >
" No" data binding ", The code will be flooded with code to manipulate the DOM, and only jquery can be used to manually control the refresh of the interface, which is a very painful thing to do.
And Reactjs is a "data binding" component technology that lets you pull away from the endless data manipulation, just focus on the interface logic.
Reactjs belongs to the component technology, only realizes the view, but for the web development, except the view side , as well as event management, modularity, dynamic loading, and more. using Reactjs, you need to manually build wheels, integrate other frameworks, don't think this is a simple thing, not good will be possessed!
PS: There have been attempts to combine backbone and reactjs to form a new MVC framework (http://www.iteye.com/news/30771)
2.ReactJS JSX, do you know how to write the DOM in XML?
Reactjs in writing DOM code, it is recommended to use JSX syntax sugar, and then compile it into JavaScript code through NODEJS, although it also supports native JavaScript, but it is very bloated to write.
for this kind of black box run "conversion" Technology , early you will taste some sweetness, eat to the back only to find that the original is "sandwich", folder or "Huang Lian". From GWT,JSF, to the coffee Script,demo version, no one can be charmed by man, and there are few successful cases, almost no.
So, speaking of JSX, the forum are all very, but at the end of the add a sentence: This is my imitation of xx written demo!
3.ReactJS Native, to create the app-side of the original ecological applications, can really achieve it?
reactjs native can generate native layout! for different platforms It is not similar to phonegap principle, but rather "   learn once, Write Anywhere ", popular point that is, learned Reactjs, for all platforms can use this syntax!
"   learn once, Write Anywhere present Reactjs Native official also stated: is being perfected ... So to be compatible with multi-platform, this is far from a mature solution. For the future can be achieved, not good.
4.ReactJS VS AngularJS
Many people like the simple comparison of various frameworks, Facebook officials will also speak Reactjs faster than ANGULARJS! Aside from the context, simply speaking fast, in fact, is a thorough bottom of the rogue behavior!
In terms of scope, Reactjs is just a view frame, and Angularjs contains MVC, dependency injection, modularity and so on, and there is no comparability in itself!
When it comes to Reactjs's fast, Facebook officials speak only about the speed of Dom rendering, and the code hides a lot of the hype, and it's not a man-made daydream.
attached link: Http://www.infoq.com/cn/news/2015/06/is-react-really-fast
5. Learning curve
Some people complain that Angularjs's learning curve is too steep, and reactjs can smooth the transition, which I do not deny in terms of its own technology. But just Reactjs can not handle the front end, you have to learn to backbone, and then you will find backbone code is not very good organization, and then by the way to learn requirejs ....
Therefore, when discussing the learning curve, must not sighted!
6.ReactJS in the end can you use?
So far, I did not speak of any outstanding advantages of REACTJS, we must feel completely unable to use it. Actually not also!
Technology, in itself, is a bullying behavior. When choosing a frame, be sure to combine your own business, if you want to do a small website now, and then will not expand, then I recommend you use Reactjs, simple and fast!
If you want to build a platform, and the platform has a strong scalability, it is necessary to think carefully! If you want to use REACTJS native to achieve multi-platform, then you have to think carefully!
Reactjs, is it exaggerated?