mirror of
https://github.com/bendtherules/UiQuestions.git
synced 2026-08-18 13:52:50 +00:00
element-properties - Shorteen NodeeList eextra text
This commit is contained in:
@@ -131,7 +131,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 `[...ele.children]`. NodeList is also a iterable and has a `.length` property.
|
||||
`NodeList` can be converted to an array easily, using `Array.from()` or `[...ele.children]`. 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