The ...
(spread operator) is used in react to:
provide a neat way to pass props from parent to child components. e.g given these props in a parent component,
this.props = {
username: "danM",
email: "[email protected]"
}
they could be passed in the following manner to the child,
<ChildComponent {...this.props} />
which is similar to this
<ChildComponent username={this.props.username} email={this.props.email} />
but way cleaner.