react-html-props
Advanced tools
Comparing version 1.0.21 to 1.0.22
{ | ||
"name": "react-html-props", | ||
"version": "1.0.21", | ||
"version": "1.0.22", | ||
"author": "Justin Mahar <contact@justinmahar.com>", | ||
@@ -5,0 +5,0 @@ "description": "Convenient TypeScript types for all React HTML props.", |
@@ -60,5 +60,5 @@ <h2 align="center"> | ||
## Unpacking Children | ||
## Unpacking Attributes | ||
We can use [object destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#object_destructuring) to unpack `children` from the rest of an element's props. | ||
We can use [object destructuring](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment#object_destructuring) and the [spread operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_syntax) to unpack attributes, such as `children`, from the rest of an element's props. | ||
@@ -100,3 +100,3 @@ Using `div` as an example again: | ||
(Yes, a group of kittens is called a "kindle") | ||
(And yes, a group of kittens is called a "kindle") | ||
@@ -103,0 +103,0 @@ ## Included HTML Element Props |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
49449