Add React.Children.count docs

This commit is contained in:
Ben Alpert
2014-07-16 23:19:18 -07:00
parent cf0696ef8c
commit 5af72f4b72

View File

@@ -117,6 +117,14 @@ React.Children.forEach(object children, function fn [, object context])
Like `React.Children.map()` but does not return an object.
#### React.Children.count
```javascript
number React.Children.count(object children)
```
Return the total number of components in `children`, equal to the number of times that a callback passed to `map` or `forEach` would be invoked.
#### React.Children.only
```javascript