Skip to content

Commit

Permalink
Link to useLayoutEffect gist in a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 20, 2019
1 parent daeda44 commit ada1f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/react-dom/src/server/ReactPartialRendererHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,8 @@ export function useLayoutEffect(
"be encoded into the server renderer's output format. This will lead " +
'to a mismatch between the initial, non-hydrated UI and the intended ' +
'UI. To avoid this, useLayoutEffect should only be used in ' +
'components that render exclusively on the client.',
'components that render exclusively on the client. ' +
'See https://fb.me/react-uselayouteffect-ssr for common fixes.',
);
}

Expand Down

0 comments on commit ada1f23

Please sign in to comment.