|
|
|
|
|
by troupo
933 days ago
|
|
> Lit doesn't need JSX and a virtual DOM, which are React specific technologies. But lit needs lit's custom DSL, lit's custom reactive components, custom everything. Even in their most trivial example literally everything is custom, and specific to lit: import {LitElement, css, html} from 'lit';
import {customElement, property} from 'lit/decorators.js';
// custom lit-specific decorator
@customElement('simple-greeting')
export class SimpleGreeting extends LitElement {
// custom lit-specific css function
static styles = css`
:host {
color: blue;
}
`;
// Custom, lit-specific reactive properties
@property()
name?: string = 'World';
// custom lit-specific render function
render() {
// custom lit-specific DSL
return html`<p>Hello, ${this.name}!</p>`;
}
}
So. So, extraordinary claims require extraordinary proofs. I eagerly await a description, with examples, of how much work there is to convert a non-trivial lit component to Stencil.BTW. Claiming that Virtual DOM is somehow a react-specific technology (and that somehow apparently affects conversion from React to something else) really shows how much you understand about the topic at hand. |
|
Edit: hint: that is why Lit's library is also much smaller