Browse Source

Add React.Children.count docs

main
Ben Alpert 11 years ago
parent
commit
5af72f4b72
  1. 8
      docs/ref-01-top-level-api.md

8
docs/ref-01-top-level-api.md

@ -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

Loading…
Cancel
Save