Changing an array call based on a state

前端 未结 0 1110
醉话见心
醉话见心 2020-12-19 07:59

I am trying to alter the array group I am filtering on based on a state set on click:

{this.state.data.filter(items => items.{this.state.filtergroup} === t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题