Uncaught Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.
原因:React中不能使用Object作内容绑定
eg:
<div>{{ }}</div> 错误
<div>{{ age:20}}</div> 错误
<div>{['tom','mary']}</div> 正确 里面放的数组
<div>{[{ename:'tom'}]}</div> 错误
<div>{{age:20}.age}</div>正确 里面绑定的不是对象,是对象的属性
只能通过控制台来查看获取的数据