Link to useLayoutEffect gist in a warning (#15158)

This commit is contained in:
Dan Abramov 2019-03-20 13:40:36 +00:00 committed by GitHub
parent 061d6ce3c0
commit c05b4b81f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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.',
);
}