Closed fairhat closed 3 years ago
Hey,
currently using this component for SSR is impossible because src/sheet.tsx uses ReactDOM.createPortal(... document.body) document is undefined inside SSR (in my case next.js)
src/sheet.tsx
ReactDOM.createPortal(... document.body)
Thank you for reporting this 🙏
I haven't used Next.js before but I'll take a look at this issue 👍
@fairhat I believe this issue should be fixed in version 0.1.3.
0.1.3
Hey,
currently using this component for SSR is impossible because
src/sheet.tsx
usesReactDOM.createPortal(... document.body)
document is undefined inside SSR (in my case next.js)