by selectnull · 2y ago · 0 comments
const el = <p>Hello, world!</p>;
I get `Uncaught SyntaxError: Unexpected token '<'`. I even tried in several browsers, no luck.const el = html`<p>Hello, world!</p>`
And you're done. These are called "tagged template literals[0]". Lit gives you the html "tag" for the literal that you're looking for.
[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
2) it’s still an external library, which is OPs point