What does the ...
do in this React (using JSX) code and what is it called?
... this syntax is part of ES6 and not something which you can use only in React.It can be used in two different ways; as a spread operator OR as a rest parameter.You can find more from this article: https://www.techiediaries.com/react-spread-operator-props-setstate/
what you have mentioned in the question is something like this, let's assume like this,
function HelloUser() {
return ;
}
with the use of spread operator you can pass props to the component like this.
function HelloUser() {
const props = {Name: 'ABC', City: 'XYZ'};
return ;
}