Chetan's Blog

Chetan's Blog

Follow

useLayoutEffect and the SSR warning

Nov 1, 20204 min read

Introduction Ever saw this dreaded warning in your application logs: Warning: useLayoutEffect does nothing on the server, because its effect cannot...

useLayoutEffect and the SSR warning