← React Intermediate Questions - Set 7 Q69

What is the `useLayoutEffect` hook in React?

React Intermediate Questions - Set 7

Example

useLayoutEffect(() => setH(el.current.offsetHeight), []);

What to notice

← Back to the question list