How to update a state when a prop changes, without double rendering

后端 未结 0 1445
囚心锁ツ
囚心锁ツ 2021-01-01 03:49

I have a data visualization component that has "width" as one of the props. A state keeps track of the zoom level in the chart, and it is updated when handling mou

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