会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
喜乐天
博客园
首页
新随笔
联系
管理
订阅
2019年9月4日
React.createClass 对比 extends React.Component
摘要: React提供了React.createClass方法来创建组件类并且发布了一个语法糖更新,通过扩展React.component类而不是调用createclass的方法,更好使用ES6模块 1.语法区别 2.propTypes and getDefaultProps 3.State区别 4.“th
阅读全文
posted @ 2019-09-04 09:05 喜乐天
阅读(273)
评论(0)
推荐(0)
编辑