DEV Community

Discussion on: Master the art of React.useEffect

Collapse
 
alarid profile image
Yohann Legrand

Thanks! I wouldn't recommend using useLayoutEffect for anything else than DOM updates though. In fact, I only use it if I need to mutate the DOM in an observable way to the user and/or to perform measurements. I'll probably write about this hook in the future, so stay tuned :)