Compared with angular React, atitit. react is the most reliable web ui componentization solution. reactangular
Compared with angular React, atitit. react is the most reliable web ui componentization solution.
1. componentization of React is the correct direction of web ui components. 1
1.1. Integrate html, css, and js self-contained components for easy reuse. 1
1.2. Compared with angular. Js ease of use 1
2. React problems and improvements: 2
2.1. Visualization templates are not easily supported by dw .. 2
2.2. html and js integration of components is based on js 2
2.3. Component attributes are dominated by js 2
To be honest, react is currently the most reliable web ui componentization solution.
1.
Componentization of React is the correct direction for web ui Components1.1.
Integrate html, css, and js self-contained components to facilitate reuse.
The mvc mode is not encouraged. Or the components use mvc internally to separate the ui and js, but the whole page does not advocate mvc ..
1.2.
Compared with angular. Convenient and easy to use Js
Author ::★(Attilax)> nickname: old wow's paw (full name: Attilax Akbar Al Rapanui Attila Akba Arla Panui) Chinese name: AI long, EMAIL: 1466519819@qq.com
Reprinted please indicate Source: http://www.cnblogs.com/attilax/
2.
React problems and improvements:2.1.
Visualization templates are not easy to get dw support ..
As a template, it is necessary to obtain support for visual Html ide such as dw ..
Improvement Suggestion: Use html files as components, and small components can be read and loaded using ajax, so that the components can facilitate dw design .. Large components can be loaded using ajax or iframe ..
2.2.
The integration of html and js components is based on js.
This results in poor visual interface design .. Javascript should be embedded on the basis of html dom .. Js itself is the code, and the visualization requirements are relatively low .. Dom labels use a commonly used class to add a special oocss class to indicate the type of a component, composite component, or an extended attribute ..
2.3.
The component attributes are mainly js-based.
This leads to debugging of viewing attribute values. If you can extend attributes on html tags, debugging is convenient. After all, the browser can view the attribute values at a glance.
A browser redraws a webpage at a frequency of 60 FPS (16 ms/frame). JavaScript cannot perform DOM operations within 16 ms, so a frame jump is generated. This is why the user experience is not smooth and coherent.