What do these three dots in React do?

前端 未结 29 2598
不思量自难忘°
不思量自难忘° 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:24

    if you have an array of elements and you want to display the elements you just use ...arrayemaments and it will iterate over all the elements

提交回复
热议问题