Question: When do you use `useLayoutEffect`?
- to optimize for all devices
- to complete the update
- to change the layout of the screen
- when you need the browser to paint before the effect runs
Answer: The correct answer of the above question is Option D:when you need the browser to paint before the effect runs