What does {...this.props} mean in this code?
{...this.props}
Answer
The {...variable} syntax is called "spread attributes".
{...variable}
What this does is, basically, it takes every property of this.props (or any other passed variable) and applies them to the element.
this.props
Example:
props = {className: 'big', href: 'http://example.com'};// the above line is equal to the following
In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...
No comments:
Post a Comment