How to use Portal in remix ? #7874
-
in SPA, I use library: react-portal to make portal so |
Beta Was this translation helpful? Give feedback.
Answered by
kiliman
Nov 2, 2023
Replies: 1 comment 5 replies
-
You need to use it only client side, you can’t server-side render a portal. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Portals require an actual DOM element as the root. SSR doesn't create DOM elements, just HTML as a string.