Spreading the elements from one array and copying them into is one of those handy shorthands for moving data around in JavaScript.
I started looking into it after seeing <ComponentName {...props} /> in lots of React projects, and couldn’t figure out what on earth was going on with the props syntax.