Skip to content

Commit c5a733e

Browse files
Ende93nhunzaker
authored andcommitted
Fix links of docs on the comment (facebook#12795)
1 parent 36546b5 commit c5a733e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

packages/react/src/ReactChildren.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ function forEachSingleChild(bookKeeping, child, name) {
264264
/**
265265
* Iterates through children that are typically specified as `props.children`.
266266
*
267-
* See https://reactjs.org/docs/react-api.html#react.children.foreach
267+
* See https://reactjs.org/docs/react-api.html#reactchildrenforeach
268268
*
269269
* The provided forEachFunc(child, index) will be called for each
270270
* leaf child.
@@ -333,7 +333,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
333333
/**
334334
* Maps children that are typically specified as `props.children`.
335335
*
336-
* See https://reactjs.org/docs/react-api.html#react.children.map
336+
* See https://reactjs.org/docs/react-api.html#reactchildrenmap
337337
*
338338
* The provided mapFunction(child, key, index) will be called for each
339339
* leaf child.
@@ -356,7 +356,7 @@ function mapChildren(children, func, context) {
356356
* Count the number of children that are typically specified as
357357
* `props.children`.
358358
*
359-
* See https://reactjs.org/docs/react-api.html#react.children.count
359+
* See https://reactjs.org/docs/react-api.html#reactchildrencount
360360
*
361361
* @param {?*} children Children tree container.
362362
* @return {number} The number of children.
@@ -369,7 +369,7 @@ function countChildren(children) {
369369
* Flatten a children object (typically specified as `props.children`) and
370370
* return an array with appropriately re-keyed children.
371371
*
372-
* See https://reactjs.org/docs/react-api.html#react.children.toarray
372+
* See https://reactjs.org/docs/react-api.html#reactchildrentoarray
373373
*/
374374
function toArray(children) {
375375
const result = [];
@@ -386,7 +386,7 @@ function toArray(children) {
386386
* Returns the first child in a collection of children and verifies that there
387387
* is only one child in the collection.
388388
*
389-
* See https://reactjs.org/docs/react-api.html#react.children.only
389+
* See https://reactjs.org/docs/react-api.html#reactchildrenonly
390390
*
391391
* The current implementation of this function assumes that a single child gets
392392
* passed without a wrapper, but the purpose of this helper function is to

0 commit comments

Comments
 (0)