摘要: 渲染阶段 React中的jsx文件,babel会将jsx转化成js。 假设在React中render一个<div>,在相应的js中会有一个React.createElement的方法,接受component、props... children的参数,还有ref、key等属性,使用js构建出一个虚拟d 阅读全文
posted @ 2018-03-21 14:19 bounce 阅读(279) 评论(0) 推荐(0) 编辑