Skip to content

Commit

Permalink
Merge pull request #6730 from elas7/fix-docs
Browse files Browse the repository at this point in the history
[docs] Remove mention of 'nested object' as an allowed children in React.Children.map
  • Loading branch information
gaearon committed May 9, 2016
2 parents 9ddf9e1 + 46e6587 commit 982e096
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/ref-01-top-level-api.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Verifies the object is a ReactElement.
array React.Children.map(object children, function fn [, object thisArg])
```

Invoke `fn` on every immediate child contained within `children` with `this` set to `thisArg`. If `children` is a nested object or array it will be traversed: `fn` will never be passed the container objects. If children is `null` or `undefined` returns `null` or `undefined` rather than an array.
Invoke `fn` on every immediate child contained within `children` with `this` set to `thisArg`. If `children` is a [keyed fragment](/react/docs/create-fragment.html) or array it will be traversed: `fn` will never be passed the container objects. If children is `null` or `undefined` returns `null` or `undefined` rather than an array.

#### React.Children.forEach

Expand Down

0 comments on commit 982e096

Please sign in to comment.