All quizzes
Free quiz · 19 questions in the bank

Lit quiz

Test your Lit knowledge with a free interactive quiz — 19 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What are "custom events" in the context of a Lit component communicating with its parent/consumer?

Questions in this quiz
  1. What are "custom events" in the context of a Lit component communicating with its parent/consumer?
  2. What does Lit's TypeScript decorator syntax (`@customElement('my-element')`, `@property()`, `@state()`) provide compared to the equivalent plain-JavaScript static field declarations?
  3. What is `lit-html` (as distinct from the full `lit` package / `LitElement`)?
  4. What is the purpose of the `css` tagged template literal in Lit, used alongside a component's `static styles` field?
  5. What are "reactive properties" in a Lit component?
  6. What is the purpose of Lit's `@eventName=${handler}` syntax in a template?
  7. What does it mean that Lit performs "efficient, targeted DOM updates" rather than re-rendering the whole component on every state change?
  8. What is a common reason a design-system/component-library team might specifically choose Lit over building components in a single framework like React?
  9. What is the significance of Lit's templates NOT requiring a compile step (unlike JSX, which needs Babel/TypeScript to transform)?
  10. What is Lit SSR (Server-Side Rendering) support intended to address?
  11. What is Shadow DOM, and how does Lit use it by default?
  12. What does a Lit "directive" (like `repeat`, `classMap`, `styleMap`) provide within a template?
Gaps to close?
Read the curated Lit notes — core concepts, patterns, interview prep.
Lit notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web