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

前端 未结 5 2004
南笙
南笙 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 09:06

    You will use props in your child component

    for example

    if your now component props is

    {
       booking: 4,
       isDisable: false
    }
    

    you can use this props in your child compoenet

     
    ...

    in you child component, you will receive all your parent props.

提交回复
热议问题