Fix return type in onlyChild's JSDoc (#6573)

The return type is a 'ReactElement' instead of a 'ReactComponent'.
This commit is contained in:
Esteban
2016-04-21 16:02:20 -07:00
committed by Jim
parent 0dc9b91017
commit 416f315c96
+1 -1
View File
@@ -22,7 +22,7 @@ var invariant = require('invariant');
* of children.
*
* @param {?object} children Child collection structure.
* @return {ReactComponent} The first and only `ReactComponent` contained in the
* @return {ReactElement} The first and only `ReactElement` contained in the
* structure.
*/
function onlyChild(children) {