What kind of functionality is "runs natively in the browser"?
JSX also runs in every browser.
Edit: Just rename "Web Components" into "Web Tags" and it's all good.
JSX also runs in every browser.
Edit: Just rename "Web Components" into "Web Tags" and it's all good.
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