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.
Mystery solved…
Want more illustrated notes on web development?
Take a look at JSX is a Lovechild JSX is a Lovechild
Illustrated notes on how JSX in React works , How Are Compilers & Transpilers Different? How Are Compilers & Transpilers Different?
Illustrated notes on how compilers and transpilers are different or [[A Fruitful Guide to JavaScript’s Comparison Operators]]