B4Coder
0%
LessonAbout 7 min

Chapter 11 · Lesson 1 of 5

01. useLayoutEffect: measuring before the paint

useLayoutEffect runs after React changes the page but before the browser paints it: the right moment to measure an element.

Opening the lesson…