Skip to content

Instantly share code, notes, and snippets.

@kristoferjoseph
Created July 22, 2020 16:56
Show Gist options
  • Save kristoferjoseph/df64781767c7189ca2e9212b8755fdd2 to your computer and use it in GitHub Desktop.
Save kristoferjoseph/df64781767c7189ca2e9212b8755fdd2 to your computer and use it in GitHub Desktop.
Wishlist fot SSR html from tagged template literal
import html from 'super-cool-lib.js'
import child from './child.js'
export default function Parent(props) {
return html`
<x-parent>
<x-child></x-child>
</x-parent>
`
}
@kristoferjoseph
Copy link
Author

As a component developer I want to be able to write reusable component templates that use JavaScript string template literals and author standard HTML.

This requires a parse step during server side render to figure out which web component class to send down with the rendered HTML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment