📜  uselayouteffect - 任何代码示例

📅  最后修改于: 2022-03-11 14:56:31.589000             🧑  作者: Mango

代码示例1
useLayoutEffect. The signature is identical to useEffect , but it fires synchronously after all DOM mutations. Use this to read layout from the DOM and synchronously re-render. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.