React useState returns old value

前端 未结 0 1841
小蘑菇
小蘑菇 2020-12-14 07:30

In the following example I render three items: 1, 2, 3. I click on item 3 to delete it, however what remains on screen is items 2 & 3 instead of only 1 & 2, since it

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