Created
February 26, 2019 17:14
-
-
Save DSchau/50c23ca3109176771a8153ed0c08a9f1 to your computer and use it in GitHub Desktop.
Prelim. version of Gatsby + Ionic
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { renderToString } = require(`react-dom/server`) | |
| exports.replaceRenderer = function replaceRenderer({ bodyComponent, replaceBodyHTMLString }) { | |
| const bodyHTML = renderToString(bodyComponent) | |
| // parse into document (and inject this into stencil SSR) | |
| // call SSR APIs | |
| // call replaceBodyHTMLString with hydrated HTML | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment