Created
February 4, 2019 09:14
-
-
Save mgmgpyaesonewin/9ae8bd35f982c294cd6dcb1a1af6a5fc to your computer and use it in GitHub Desktop.
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
| function renderFullPage(html, preloadedState) { | |
| return ` | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <title>Redux Universal Example</title> | |
| </head> | |
| <body> | |
| <div id="root">${html}</div> | |
| <script> | |
| window.__PRELOADED_STATE__ = ${JSON.stringify(preloadedState)} | |
| </script> | |
| <script src="/static/bundle.js"></script> | |
| </body> | |
| </html> | |
| ` | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment