Is holding a DOM element ref into an useState call a potential source for memory leak?

前端 未结 0 1513
无人共我
无人共我 2021-02-06 09:02

In the example below, would myEl be a potential source of memory leak ?

Is there any proven good practice applicable here ?



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