react-portal-universal
react-portal-universal copied to clipboard
Generic wrapper for React's createPortal allowing for rendering portals on the server
## What it does: It shows a proposal for Universal Portal. Inspired by loadable-component, styled-components, and nextjs we can have now an extractor and the user can have total control...
@jesstelford I mentioned you here, because I cannot create an issue in your fork. I saw in https://github.com/jesstelford/react-portal-universal/blob/43e9ba1e8e2ad84d55de6a43562d869c63fabafe/src/server.tsx#L26, that there is only support for `renderToStaticMarkup`. This works totally fine with...
Fixes #5, and I _think_ #2. Heavily inspired by `styled-components`, this PR completely changes the API, but should make things concurrent-safe: ```jsx // CLIENT import { UniversalPortal, prepareClientPortals } from...
on the server side there can be more then one requests at the same time being processed, the `const portals = [];` at the file level will be shared between...
Hi there, I'm running into issues because of my portals using connected redux props. I need to somehow wrap the rendering of the portals with: `{renderUniversalPortals()}` Perhaps introducing a second...