I have an array that I am trying to set the value for from a different array however my arrays are not similar the array I am trying to set should look like this
expanded = [id1, id2, id3]
while the array I am setting from looks more like this
data = [{id: 1, name:"test"},{id:2, name:"test2"},{id:3, name:"test3"}]
not sure how to do this with this.setState
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…