Skip to content

Commit

Permalink
Link to useLayoutEffect gist in a warning (facebook#15158)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Mar 22, 2019
1 parent 342fa78 commit b5cb9d3
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 @@ -389,7 +389,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 b5cb9d3

Please sign in to comment.