-
getDefaultProps: receive props from outsize
getInitialState: set default state object
componentWillMount: component will about to mount
componentDidMount: component is just mount
shouldComponentUpdate: should component update? return true or false
componentWillUpdate: component is about update
componentDidUpdate: compoent is just updated
08:50
-
-
-
-
-
-
-
-
ReactDom.render两个参数:
1.jsx 对象 会把传入的对象进行组织表述出来,react 会把它转化为creteElemet调用,会在浏览器中添加相应的dom元素,进而改变dom模型后,使得浏览器在渲染后作出改变。
2.dom元素要挂载的节点。
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
自动化UI管理--数据变化--》具体的事件
更高效的DOM操作--内存中的virtual DOM 对比虚拟DOM和DOM差异,一次性同步
UI组件化设计
依赖JS开发UI界面(摆脱了CSS的影响,由开发者自己定义界面)JSX
-
-
举报