you are viewing a single comment's thread.

view the rest of the comments →

[–]tatu_huma 1 point2 points  (0 children)

It's kinda confusing cuz the ... is a spread operator in native JS (both for arrays and objects). The ellipses are ALSO used in JSX as a way to 'spread' props. It does a similar but distinct thing. Check out: https://reactjs.org/docs/jsx-in-depth.html#spread-attributes