diff --git a/docs/ref-01-top-level-api.md b/docs/ref-01-top-level-api.md index 05500396..e15975d0 100644 --- a/docs/ref-01-top-level-api.md +++ b/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