Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const renderApp = () => {
- const html = renderToString(React.createFactory(App)({ welcome: 'Hello' }))
- return `
- <!DOCTYPE html>
- <html>
- <head>
- <title>Server rendered app</title>
- </head>
- <body>${html}</body>
- </html>
- `
- }
Add Comment
Please, Sign In to add comment