Props属性

  props  对于模块来说属于  外来  属性。

  传递参数:<Componentt username = "Premy" />

  接收参数:this.props.username.

posted @ 2020-08-20 10:53  梦为湘子  阅读(170)  评论(0编辑  收藏  举报