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

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.

主站蜘蛛池模板: 佛学| 柯坪县| 哈尔滨市| 宝应县| 柯坪县| 顺平县| 灵山县| 正镶白旗| 梁山县| 札达县| 平湖市| 卢氏县| 阳新县| 金沙县| 福鼎市| 肥乡县| 开远市| 廉江市| 阿合奇县| 临沂市| 浦城县| 章丘市| 永泰县| 额尔古纳市| 来安县| 塔河县| 甘洛县| 文化| 甘洛县| 镇赉县| 福泉市| 忻州市| 凌源市| 顺昌县| 武城县| 蕲春县| 杂多县| 普陀区| 禹州市| 天门市| 江北区|