会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Leophen
首页
新随笔
联系
管理
2019年8月8日
React中的State与Props
摘要: 一、State 1、什么是 state 一个组件的显示形态可以由数据状态和外部参数决定,其中,数据状态为 state,外部参数为 props 2、state 的使用 组件初始化时,通过 this.state 给组件设置一个初始的 state,在第一次 render 时就会用这个数据渲染组件 3、se
阅读全文
posted @ 2019-08-08 22:46 Leophen
阅读(519)
评论(0)
推荐(0)
公告