react-async-ssr
react-async-ssr copied to clipboard
Render React Suspense on server
Implement streaming rendering. This would be tricky to implement. At present a tree of Suspense + Lazy components is built during rendering, and then the tree is converted to HTML...
Re-export `ReactDOMServer`'s `renderToString` and `renderToStaticMarkup` methods in this module so it becomes a drop-in replacement for `ReactDOMServer`. ```js const ReactDOMServer = require('react-async-ssr'); // Original sync methods ReactDOMServer.renderToString( e ); ReactDOMServer.renderToStaticMarkup(...
Discovered this while developing SSR data rendering with [react-lazy-data](https://www.npmjs.com/package/react-lazy-data). It appears to be a bug in this package rather than react-lazy-data.
*** ☝️ **Important announcement:** Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! [Find out how to migrate to Snyk and more at...
This library includes code to handle both: * Errors thrown during rendering * Promises thrown for lazy loading which reject However, there are no tests for either at present.