setState increases the like counts for all instances. How can I increase like count for each individual record in class component?

后端 未结 0 964
北恋
北恋 2021-01-21 16:33

I have a code that works the way I want except when the button calling the "handleLike" handler, it increases the like count on all records instead of one. I have crea

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