我想从“类别”状态更新“ treedata”状态

时间:2019-12-29 09:01:39

标签: arrays json reactjs object

 `this.state = {treeData: [{ title: 'Chicken', children: [{ title: 'Egg' }] },
    { title: 'Fish', children: [{ title: 'fingerline'}] }],
  categories: [{id: "1", parentId: null, name: null, Childs: [], …}

{id:“ 2”,parentId:null,名称:null,Childs:[],…}]} `

0 个答案:

没有答案