官术网_书友最值得收藏!

React.js

Different from Angular, React.js is a library that can be integrated with any JavaScript project. It is used for handling the view layer for the web applications and build reusable UI components. React is component based too, but it mixes the HTML code inside the JavaScript files, in JSX format. JSX is a React syntax very similar to XML format since you can manage your view layer and add some behavior defining some attributes as the state or properties of your component. Sounds a little confusing? Yes, you will need to learn how JSX works and read about some of the new concepts about the tool.

React.js has a great feature—server-side rendering. What does that mean? Common JavaScript frameworks let the render work to the client side, so the browser needs to interpret your JavaScript files and transform it to plain HTML files. It can take time depending on how much data will be displayed on the page. With React.js, you can configure your server to have all those pages processed in the server side, so the browser just needs to call the correct HTML file and of course, the loading time will be less.

Similar to Angular, React.js offers you a complete set of libraries to implement dynamic routing, data binding, HTTP requests, and other React implementations libraries such as Inferno.js, with a rendering algorithm more powerful and optimized.

One very important note! Aurelia now has its own server side rendering plugin. You can find more info there: https://aurelia.io/docs/ssr/introduction/

主站蜘蛛池模板: 时尚| 九龙坡区| 抚宁县| 富川| 金昌市| 朝阳县| 油尖旺区| 绵竹市| 康保县| 洪江市| 安阳市| 长治市| 广水市| 田东县| 卢湾区| 阳朔县| 资阳市| 克什克腾旗| 石城县| 中阳县| 门头沟区| 孝义市| 和平区| 宜阳县| 五原县| 石泉县| 闽清县| 汝阳县| 漯河市| 桂阳县| 永年县| 桐柏县| 曲阳县| 黑龙江省| 金阳县| 井冈山市| 中西区| 岱山县| 双辽市| 刚察县| 平利县|