What is the meaning of {…this.props} in Reactjs

前端 未结 5 2011
南笙
南笙 2020-12-07 08:32

What is the meaning of

{...this.props}

I am trying to use it like that

 
Content Here
5条回答
  •  青春惊慌失措
    2020-12-07 08:45

    It is ES-6 feature. It means you extract all the properties of props in div.{... }

    operator is used to extract properties of an object.

提交回复
热议问题