Why is calling useState's setter with the same value subsequently triggers component update even if old state value equals to the new state value

前端 未结 0 781
有刺的猬
有刺的猬 2020-11-27 20:02

That problem is occurs only if state value was actually changed due previous update

In the following example, when button clicked for the first time, "setState&q

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