What do these three dots in React do?

前端 未结 29 2588
不思量自难忘°
不思量自难忘° 2020-11-21 23:53

What does the ... do in this React (using JSX) code and what is it called?



        
29条回答
  •  爱一瞬间的悲伤
    2020-11-22 00:30

    Its called spread operator. For eg let hello={name: '',msg:''} let hello1={...hello} Now hello object properties is copied to hello1.

提交回复
热议问题