我如何调用文本哆啦A梦来渲染组件
constructor(props) {
super(props);
this.state = {
array: [
{text:"doraemon",id:1},
{text:"naruto", id:2},
],
}
}
我已经尝试过{this.state.array.text},但没有奏效。有什么解决办法吗?
心有法竹
慕容708150
慕森王
慕姐8265434
HUH函数
随时随地看视频慕课网APP
相关分类