Fix links of docs on the comment (#12795)
Ende93 committed
Jun 5, 2018 at 20:03 UTC
c5a733e1e3ffa74bc6bbc769f1b13ecff9915763
1 file changed
+5
-5
packages/react/src/ReactChildren.js
+5
-5
@@ -264,7 +264,7 @@ function forEachSingleChild(bookKeeping, child, name) {
264
/**
265
* Iterates through children that are typically specified as `props.children`.
266
*
267
- * See https://reactjs.org/docs/react-api.html#react.children.foreach
267
+ * See https://reactjs.org/docs/react-api.html#reactchildrenforeach
268
*
269
* The provided forEachFunc(child, index) will be called for each
270
* leaf child.
@@ -333,7 +333,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
333
/**
334
* Maps children that are typically specified as `props.children`.
335
*
336
- * See https://reactjs.org/docs/react-api.html#react.children.map
336
+ * See https://reactjs.org/docs/react-api.html#reactchildrenmap
337
*
338
* The provided mapFunction(child, key, index) will be called for each
339
* leaf child.
@@ -356,7 +356,7 @@ function mapChildren(children, func, context) {
356
* Count the number of children that are typically specified as
357
* `props.children`.
358
*
359
- * See https://reactjs.org/docs/react-api.html#react.children.count
359
+ * See https://reactjs.org/docs/react-api.html#reactchildrencount
360
*
361
* @param {?*} children Children tree container.
362
* @return {number} The number of children.
@@ -369,7 +369,7 @@ function countChildren(children) {
369
* Flatten a children object (typically specified as `props.children`) and
370
* return an array with appropriately re-keyed children.
371
*
372
- * See https://reactjs.org/docs/react-api.html#react.children.toarray
372
+ * See https://reactjs.org/docs/react-api.html#reactchildrentoarray
373
*/
374
function toArray(children) {
375
const result = [];
@@ -386,7 +386,7 @@ function toArray(children) {
386
* Returns the first child in a collection of children and verifies that there
387
* is only one child in the collection.
388
*
389
- * See https://reactjs.org/docs/react-api.html#react.children.only
389
+ * See https://reactjs.org/docs/react-api.html#reactchildrenonly
390
*
391
* The current implementation of this function assumes that a single child gets
392
* passed without a wrapper, but the purpose of this helper function is to