In Javascript, ellipses ( … ) are used for two separate shorthands — rest syntax and spread syntax . Rest syntax will set the remaining elements of a collection to a defined variable.
Read moreWhat does 3 dots in JavaScript mean?
(three dots in JavaScript) is called the Spread Syntax or Spread Operator . This allows an iterable such as an array expression or string to be expanded or an object expression to be expanded wherever placed. This is not specific to React. It is a JavaScript operator.31 May 2017
Read more