31: Objects are not valid as a React child (found: object with keys …).
当时写<h4>{this.props.bigH}</h4>,bigH不是一个字符串,而是一个对象{header: ..., content: ...}
109: A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
render函数里面忘了写return…

本文解决了React中常见的两个问题:一是使用无效对象作为React子元素;二是render函数未正确返回React元素或null,导致应用无法正常运行。
3万+

被折叠的 条评论
为什么被折叠?



