mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Link to useLayoutEffect gist in a warning (#15158)
This commit is contained in:
1 parent
061d6ce3c0
commit
c05b4b81f9
1 file changed
+2
-1
@@ -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.',
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user