mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Fixed confusing use of the word/name in documentation
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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"`:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user