Rendering code using react-web-monetization server-side results in a document is not defined error.
The fact that it uses hooks (useEffect) prevents hiding it behind a useState hook (Invariant Violation: Rendered more hooks than during the previous render.)
Rendering code using react-web-monetization server-side results in a
document is not defined
error.The fact that it uses hooks (
useEffect
) prevents hiding it behind auseState
hook (Invariant Violation: Rendered more hooks than during the previous render.
)