Skip to content

Commit b5cb9d3

Browse files
committed
Link to useLayoutEffect gist in a warning (facebook#15158)
1 parent 342fa78 commit b5cb9d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/react-dom/src/server/ReactPartialRendererHooks.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ export function useLayoutEffect(
389389
"be encoded into the server renderer's output format. This will lead " +
390390
'to a mismatch between the initial, non-hydrated UI and the intended ' +
391391
'UI. To avoid this, useLayoutEffect should only be used in ' +
392-
'components that render exclusively on the client.',
392+
'components that render exclusively on the client. ' +
393+
'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
393394
);
394395
}
395396

0 commit comments

Comments
 (0)