mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 22:02:42 +00:00
element-child-content - Shorten Nodelist usage
This commit is contained in:
@@ -132,7 +132,7 @@ It returns the **number of child elements** of the given element. This is equiva
|
||||
|
||||
This property returns a live `NodeList` containing all the **child nodes** of the current element. If there are no child nodes, it returns a empty NodeList.
|
||||
|
||||
`NodeList` can be converted to an array easily, using `Array.from()` or `[...node.childNodes]`. NodeList also has a `.length` property.
|
||||
`NodeList` can be converted to a array using `Array.from()` or `[...node.childNodes]`. NodeList also has a `.length` property.
|
||||
Here, the NodeList is **live** - so the content of NodeList will auto-update.
|
||||
|
||||
```jsx
|
||||
|
||||
Reference in New Issue
Block a user