4 ms·
I‘d love to have a simple way of calling ReactDOM.renderToString() on my express server that does block to actually wait for API calls so that SSR‘ed HTML is po
by anonyfox 4y ago
I‘d love to have a simple way of calling ReactDOM.renderToString() on my express server that does block to actually wait for API calls so that SSR‘ed HTML is populated. I am very willing to trade performance against simplicity here.
Besides some explorations for suspense and server components, there doesn’t seem to be any straightforward solution to that problem unfortunately
- alvarlagerlof 4y agoMaybe you can fetch the with an await and pass it down as a prop to the component in renderToString?