|
|
|
|
|
by bennypowers
2675 days ago
|
|
Why JSXBelPack when you can 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. |
|