轉(zhuǎn)至元數(shù)據(jù)結(jié)尾
#### 什么是 React
* React 是一個(gè)用于構(gòu)建用戶界面的 JavaScript 庫磷仰。
* 聲明式UI
#### JSX
[JSX](https://zh-hans.reactjs.org/docs/jsx-in-depth.html)
#### Component
* Props
* State
* 生命周期 [圖例](https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/)
#### shouldComponentUpdate
* react 的核心賣點(diǎn)之一
* setState (只要調(diào)用了 setState 就會(huì)調(diào)用 render 無論你 setState 修改的是什么久免,哪怕是頁面里沒有的一個(gè)數(shù)據(jù),render 都會(huì)被觸發(fā)孝情,并且父組件渲染中會(huì)嵌套渲染自只锭、子組件著恩。)
* render
* diff | reconciliation
官方一點(diǎn)的定義應(yīng)該稱為 reconciliation,也就是 React 用來比較兩棵節(jié)點(diǎn)樹的算法,它確定樹中的哪些部分需要被更新喉誊。
在確定兩棵樹的區(qū)別后邀摆,會(huì)根據(jù)不同的地方對(duì)實(shí)際節(jié)點(diǎn)進(jìn)行操作,這樣你看到的界面終于在這一步得到了改變伍茄。當(dāng)年 React 也就因?yàn)檫@個(gè)高效的 dom 操作方法得到追捧栋盹。
* shouldComponentUpdate
#### PureComponent
#### Context
#### Ref
[refs 轉(zhuǎn)發(fā)](https://zh-hans.reactjs.org/docs/forwarding-refs.html)
#### Fragment
[fragment](https://zh-hans.reactjs.org/docs/fragments.html#short-syntax)
#### 高階組件
[高階組件](https://zh-hans.reactjs.org/docs/higher-order-components.html)
#### 協(xié)調(diào)與 diff
[diffing](https://zh-hans.reactjs.org/docs/reconciliation.html)
### react hook
### 如何查看ReactNative 的源碼