by bennypowers · 7y ago · 0 comments
import { html, render } from 'https://unpkg.com/lit-html';
const benefitTpl = ({name, desc}) => html`
<dt>${name}</dt>
<dd>${desc}</dd>
`;
render(html`
<lit-rocks>
<dl>${benefits.map(benefitTpl)}</dl>
</lit-rocks>`, document.body)
And updates are fast without any VDOM overhead.Also, don't forget your `?module` at the end of your unpkg link to get that running