We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I see some patterns like this:
static get styles() { return css` label, input { cursor: pointer; } `; }
Because you're using TypeScript you can write this with standard JS field syntax:
static get styles = css` label, input { cursor: pointer; } `;
It's a little nicer to read and has slightly better performance in inheritance use-cases (in Lit 2 at least).
The text was updated successfully, but these errors were encountered:
Super cool! Thanks for the tips, exciting to see these developments in the lit ecosystem!
Sorry, something went wrong.
No branches or pull requests
I see some patterns like this:
Because you're using TypeScript you can write this with standard JS field syntax:
It's a little nicer to read and has slightly better performance in inheritance use-cases (in Lit 2 at least).
The text was updated successfully, but these errors were encountered: