has the following structure
that.state.list.map(function(item,index){
return (
<li>{}
{this.state.show?
<DetailComponent data={this.state.date}/>
:null
}
</li> (index )
)
})
probably such a structure is to request the data to show the DetailComponent details in the corresponding subscript li every time I click on li. When I show multiple li at the same time, why all the li detail data will be turned into the last detail data I opened. DetailComponent is also a loop rendering dom structure
.