DEV Community

Discussion on: JavaScript Frameworks: My Thoughts

Collapse
 
gpapadopoulos profile image
George Papadopoulos

Would you like to give us a little background info on the tool you mentioned, LitElement? Thnx

Collapse
 
mckkaleb profile image
Kaleb McKinney

Sure.
LitElement is a base class that allows you to create web components that work everywhere using the shadow DOM. An example (from their website):

@customElement('simple-greeting')
export class SimpleGreeting extends LitElement {
  @property() name = 'World';

  render() {
    return html`<p>Hello, ${this.name}!</p>`;
  }
}

Collapse
 
gpapadopoulos profile image
George Papadopoulos

Thanx mate. Happy New Year2U & your family😊