We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 061d6ce commit c05b4b8Copy full SHA for c05b4b8
packages/react-dom/src/server/ReactPartialRendererHooks.js
@@ -393,7 +393,8 @@ export function useLayoutEffect(
393
"be encoded into the server renderer's output format. This will lead " +
394
'to a mismatch between the initial, non-hydrated UI and the intended ' +
395
'UI. To avoid this, useLayoutEffect should only be used in ' +
396
- 'components that render exclusively on the client.',
+ 'components that render exclusively on the client. ' +
397
+ 'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
398
);
399
}
400
0 commit comments