Chetan's Blog

Chetan's Blog

Subscribe to my newsletter and never miss my upcoming articles

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 be encoded into the server renderer's output format. This will lead to a mismatch between the initial...

useLayoutEffect and the SSR warning