会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Rachid
小前端进阶之路~
博客园
首页
新随笔
联系
订阅
管理
2018年5月29日
react(二):组件的通信
摘要: 对于组件来说,通信无非两种,父子组件通信,和非父子组件通信 一、父子父子组件通信 1、父组件给子组件传值 对于父组件来说,props是他们之间的媒介 class Parent extends Component{ state = { msg: 'start' }; componentDidMount
阅读全文
posted @ 2018-05-29 19:52 Rachid
阅读(316)
评论(1)
推荐(1)
编辑
公告