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

The React's state

Besides the flexibility of decoupling your development with reusable components, another powerful feature of React is in its component state. Every React component comes with an internal state.

If the state of a component changes, the render method will fire and re-render the component. One thing that's very different from other frameworks is that React will re-render only the changes and nothing else.

Also, it does so in a very efficient way, and it doesn't have to touch the DOM for searching before making any changes. What is happening in the back is that JSX actually represents the DOM in JavaScript, and all the updates are happening on the script site in memory first; then it will do some checks, then batch the changes and, finally, it will commit them to the DOM.

主站蜘蛛池模板: 临洮县| 清镇市| 永靖县| 柳州市| 舒城县| 阿合奇县| 甘德县| 鹤壁市| 康乐县| 霍邱县| 炎陵县| 辽中县| 旌德县| 兴国县| 邻水| 贵南县| 颍上县| 沂南县| 屏边| 巫山县| 固阳县| 绍兴县| 仙桃市| 香格里拉县| 塔河县| 湟源县| 平罗县| 上蔡县| 当阳市| 天峨县| 榆中县| 清苑县| 故城县| 和政县| 广宁县| 湘潭市| 金坛市| 密山市| 泾阳县| 中江县| 潢川县|