Link to useLayoutEffect gist in a warning (#15158)

This commit is contained in:
Dan Abramov
2019-03-22 14:14:46 +00:00
parent 342fa78ed4
commit b5cb9d345c
+2 -1
View File
@@ -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.',
);
}