mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Update reference-react.md
This commit is contained in:
committed by
Dan Abramov
parent
569340c6ad
commit
ea392b914f
@@ -221,7 +221,7 @@ Like [`React.Children.map()`](#react.children.map) but does not return an array.
|
||||
#### `React.Children.count`
|
||||
|
||||
```javascript
|
||||
Children.count(children)
|
||||
React.Children.count(children)
|
||||
```
|
||||
|
||||
Returns the total number of components in `children`, equal to the number of times that a callback passed to `map` or `forEach` would be invoked.
|
||||
|
||||
Reference in New Issue
Block a user