Skip to content

Commit

Permalink
Added more information
Browse files Browse the repository at this point in the history
Many developer get confused as React define spread as operator and JS define it as syntax. Though, react approved that spread is a syntax, reference: reactjs/react.dev#4209
  • Loading branch information
ritikbanger authored Jan 10, 2022
1 parent 553bb35 commit 7f85f9a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ function calls) or elements (for array literals) are expected, or an object expr
to be expanded in places where zero or more key-value pairs (for object literals) are
expected.

*Note*: Spread is a syntax and not an operator.

{{EmbedInteractiveExample("pages/js/expressions-spreadsyntax.html")}}

## Description
Expand Down

0 comments on commit 7f85f9a

Please sign in to comment.