[docs] Remove mention of 'nested object' as an allowed children in React.Children.map
Replace it with 'keyed fragment', since ReactFragments were made a replecement for Objects as allowed children in #4700
Seba committed
May 8, 2016 at 21:26 UTC
2fa52f375b6fa8e872950a9152dc8e222778ee4e
1 file changed
+1
-1
docs/docs/ref-01-top-level-api.md
+1
-1
@@ -98,7 +98,7 @@ Verifies the object is a ReactElement.
98
array React.Children.map(object children, function fn [, object thisArg])
99
```
100
101
-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.
101
+Invoke `fn` on every immediate child contained within `children` with `this` set to `thisArg`. If `children` is a keyed fragment 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.
102
103
#### React.Children.forEach
104