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

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/

主站蜘蛛池模板: 航空| 彝良县| 福清市| 来安县| 南雄市| 平塘县| 东方市| 道孚县| 延川县| 城固县| 达孜县| 沙洋县| 当涂县| 平遥县| 冷水江市| 广饶县| 友谊县| 邵阳县| 昌平区| 荥经县| 陇南市| 邵阳县| 赤壁市| 永丰县| 开封县| 凤山县| 蓝田县| 海原县| 郁南县| 南溪县| 枣强县| 中西区| 略阳县| 花垣县| 翁牛特旗| 青田县| 大田县| 瓦房店市| 太原市| 随州市| 安新县|