How to add object to array and also remove it when user clicks?

前端 未结 0 1907
臣服心动
臣服心动 2021-01-02 15:07

when user presses a button am just adding the data to an state, and now when user represses it i need to remove the data / and do not let the data to be added to the array ?

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