We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342fa78 commit b5cb9d3Copy full SHA for b5cb9d3
packages/react-dom/src/server/ReactPartialRendererHooks.js
@@ -389,7 +389,8 @@ export function useLayoutEffect(
389
"be encoded into the server renderer's output format. This will lead " +
390
'to a mismatch between the initial, non-hydrated UI and the intended ' +
391
'UI. To avoid this, useLayoutEffect should only be used in ' +
392
- 'components that render exclusively on the client.',
+ 'components that render exclusively on the client. ' +
393
+ 'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
394
);
395
}
396
0 commit comments