Category "lit"

What is the "right" way to nest components?

This seems like a very basic questions, but neither the documentation nor code examples I found were able to tell me. Given the following example: import { Flow

VS Code: Lit custom element not rendering properly

I've copied/pasted the code from lit.dev's playground page to troubleshoot and attempt to get Lit running in VS Code before working on my own project. I was abl

SyntaxError: Invalid or unexpected token in Visual Studio Code while using Lit

Sadly I'm aware this question has been asked before, but I've tried the solutions here to no avail: Uncaught SyntaxError: Invalid or unexpected token in code I'

Style :host in Lit component overrides style :host in mixin

When a lit component extends a mixin, style in component overrides style in mixin. Example: my-component.js export class HomePage extends ViewMixin(LitElement)