mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Link to useLayoutEffect gist in a warning (#15158)
This commit is contained in:
@@ -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.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user