Fix mapFunction parameters in mapChildren's JSDoc (#6569)
Remove 'key' parameter from 'mapFunction(child, key, index)'. It is no longer called with 'key'.
Esteban committed
Apr 21, 2016 at 18:28 UTC
9462d0d0404a9a2d2cc6afbef801f0ecf4018560
1 file changed
+1
-1
src/isomorphic/children/ReactChildren.js
+1
-1
@@ -146,7 +146,7 @@ function mapIntoWithKeyPrefixInternal(children, array, prefix, func, context) {
146
/**
147
* Maps children that are typically specified as `props.children`.
148
*
149
- * The provided mapFunction(child, key, index) will be called for each
149
+ * The provided mapFunction(child, index) will be called for each
150
* leaf child.
151
*
152
* @param {?*} children Children tree container.