Why I need to use useEffect instead of useLayoutEffect for proper sizing?

前端 未结 0 497
再見小時候
再見小時候 2021-01-23 07:06

I was using useLayoutEffect to make some measurements from a DOM node. However, I was getting incorrect sizings, usually bigger than it should. It may be because the entire page

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