会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小儿打破贼
博客园
首页
新随笔
联系
订阅
管理
2016年11月22日
React createClass 和 Component 有什么区别?
摘要: 以前是这样写的: 用 React.Component: React在ES6的实现中去掉了getInitialState这个hook函数,规定state在constructor中实现,如下: Class App extends React.Component {
阅读全文
posted @ 2016-11-22 11:53 小儿打破贼
阅读(746)
评论(0)
推荐(0)
公告