React Portal SSR
Simple implementation of server side rendering of portals.
Features
- Server Side Rendered Portals
- Simple API
- Support Multiple Portals
Installation
yarn add @stefanoruth/react-portal-ssr
or
npm install @stefanoruth/react-portal-ssr --save
API
@stefanoruth/react-portal-ssr
Portal
prepareClientPortals
PortalContext
@stefanoruth/react-portal-ssr/server
-
PortalServer(PortalContext)
collectPortals
appendPortals