diff --git a/src/isomorphic/children/onlyChild.js b/src/isomorphic/children/onlyChild.js index 505dea4246072..43ec44f29ca75 100644 --- a/src/isomorphic/children/onlyChild.js +++ b/src/isomorphic/children/onlyChild.js @@ -31,7 +31,7 @@ var invariant = require('invariant'); function onlyChild(children) { invariant( ReactElement.isValidElement(children), - 'onlyChild must be passed a children with exactly one child.' + 'React.Children.only expected to receive a single React element child.' ); return children; }