Last active
February 18, 2018 19:03
-
-
Save galenweber/07c15c452ac7618806de97b10604b635 to your computer and use it in GitHub Desktop.
HTML function for React TypeScript SSR
This file contains 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 html = ({ body }: { body: string }) => ` | |
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body style="margin:0"> | |
<div id="app">${body}</div> | |
</body> | |
<script src="js/client.js" defer></script> | |
</html> | |
`; | |
export default html; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment