Is requestAnimationFrame safe to use in React hook cleanup

前端 未结 0 1698
無奈伤痛
無奈伤痛 2021-02-05 20:10

I\'m trying to resize a canvas when a sibling component mounts and unmounts. My stripped down JSX structure is this


  

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