useState({}), best way to “force” rerenders

前端 未结 0 465
天命终不由人
天命终不由人 2021-01-18 11:32

From my understanding if you useState(myObj) the Component will only rerender if the reference to the object changes not if the object changes. However sometime

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