diff --git a/src/components/View/index.js b/src/components/View/index.js index 17c0c532..c17a0a66 100644 --- a/src/components/View/index.js +++ b/src/components/View/index.js @@ -52,7 +52,10 @@ class View extends Component { if (process.env.NODE_ENV !== 'production') { React.Children.toArray(this.props.children).forEach(item => { - invariant(typeof item !== 'string', 'A text node cannot be a child of a '); + invariant( + typeof item !== 'string', + `Unexpected text node: ${item}. A text node cannot be a child of a .` + ); }); }