What does the ... do in this React (using JSX) code and what is it called?
...
This a spread operator...
For example if you have an array first=[1,2,3,4,5] and another second=[6,7,8].
first=[1,2,3,4,5]
second=[6,7,8]
[...first, ...second] //result is [1,2,3,4,5,6,7,8]
The same can also be done with json objects.