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

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.

主站蜘蛛池模板: 五寨县| 东明县| 阿坝| 喀什市| 麦盖提县| 手机| 通海县| 大同县| 乐至县| 斗六市| 内黄县| 澎湖县| 岚皋县| 湖口县| 洞口县| 临武县| 高阳县| 凤山县| 夏津县| 八宿县| 托克托县| 永兴县| 连平县| 丰原市| 辽宁省| 云梦县| 麻栗坡县| 阿鲁科尔沁旗| 石泉县| 阿克| 汉沽区| 宝山区| 三明市| 潜山县| 含山县| 乌兰浩特市| 乳山市| 泗洪县| 古交市| 浦东新区| 库伦旗|