From 416f315c962c74e057e420b5c24e4e89744174f0 Mon Sep 17 00:00:00 2001 From: Esteban Date: Thu, 21 Apr 2016 20:02:20 -0300 Subject: [PATCH] Fix return type in onlyChild's JSDoc (#6573) The return type is a 'ReactElement' instead of a 'ReactComponent'. --- src/isomorphic/children/onlyChild.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/isomorphic/children/onlyChild.js b/src/isomorphic/children/onlyChild.js index 0a33ee1801..e1d3706c7e 100644 --- a/src/isomorphic/children/onlyChild.js +++ b/src/isomorphic/children/onlyChild.js @@ -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) {