react 15.6 source parsing:react15.6版本源码解析 源码解析
[setState执行过程](https://juejin.im/post/5b2b948af265da59615c0392) 渲染流程 1.jsx创建的虚拟元素会被编译成React的createElement方法 var ReactElement = function ( type , key , ref , self , source , owner , props ) { var element = { // 这个标签允许我们将其作为一个React元素进行唯一的识别 $$typeof : REACT_ELEMENT_TYPE , // 属于元素的内置属性 type : type , key : key , ref : ref , props : props , // 记录负责创建该元素的组件 _owner :
下载地址
用户评论