SSR shows an warning with useLayoutEffect
Closed this issue · 1 comments
coderdiaz commented
sanchan commented
This may not be related to react-payment-inputs
, but to React itself, actually they explain this in their documentation:
If you use server rendering, keep in mind that neither useLayoutEffect nor useEffect can run until the JavaScript is downloaded. This is why React warns when a server-rendered component contains useLayoutEffect.
https://reactjs.org/docs/hooks-reference.html#uselayouteffect