Fixed confusing use of the word/name in documentation

This commit is contained in:
Jim
2015-06-10 02:48:48 -07:00
parent beef0b91cf
commit d350c29c2f
2 changed files with 4 additions and 4 deletions

View File

@@ -157,15 +157,15 @@ If this component has been mounted into the DOM, this returns the corresponding
#### React.Children.map
```javascript
object React.Children.map(object children, function fn [, object context])
object React.Children.map(object children, function fn [, object thisArg])
```
Invoke `fn` on every immediate child contained within `children` with `this` set to `context`. 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 empty object.
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 empty object.
#### React.Children.forEach
```javascript
React.Children.forEach(object children, function fn [, object context])
React.Children.forEach(object children, function fn [, object thisArg])
```
Like `React.Children.map()` but does not return an object.

View File

@@ -7,7 +7,7 @@ prev: initial-ajax.html
next: communicate-between-components.html
---
Here's how `false` renders in different contexts:
Here's how `false` renders in different situations:
Renders as `id="false"`: