Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import assets from '../assets.json'
function renderHtml(renderedMarkup: string) {
return `<!DOCTYPE html>
<html>
<head>
<link id="css-main" type="text/css" rel="stylesheet" href="${assets.main
.css}">
</head>
<body>
<div id="root">${renderedMarkup}</div>
<script src="${assets.vendor.js}"></script>
<script async src="${assets.main.js}"></script>
</body>
</html>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment