Link to useLayoutEffect gist in a warning (#15158)
This commit is contained in:
parent
061d6ce3c0
commit
c05b4b81f9
|
@ -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.',
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue