All quizzes
Free quiz · 20 questions in the bank

Stimulus quiz

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

Question 1/5Score 0

What is a Stimulus controller "value" (declared via the `static values` property), and what does it provide?

Questions in this quiz
  1. What is a Stimulus controller "value" (declared via the `static values` property), and what does it provide?
  2. How would you register a new Stimulus controller class with the application?
  3. What is the relationship between Stimulus and Turbo (both part of the "Hotwire" approach from Basecamp)?
  4. What is a "class" (declared via `static classes`) in a Stimulus controller, and how does it differ from a target?
  5. How does Stimulus connect a JavaScript controller to a specific piece of HTML?
  6. What role does a `data-[controller]-[value]-value` attribute play when a controller's associated HTML is dynamically updated (e.g. via a Turbo Stream response replacing part of the page)?
  7. What is a reasonable criterion for choosing Stimulus (plus Turbo/Hotwire) versus a full SPA framework (React, Vue) for a new web application?
  8. What does Stimulus's `connect()` and `disconnect()` lifecycle callback methods do on a controller?
  9. What is the general performance/bundle-size consideration often cited as an advantage of Stimulus compared to a full SPA framework?
  10. What is Stimulus?
  11. What is a potential downside of Stimulus's "HTML/DOM as source of truth" approach for a page with genuinely complex, deeply interdependent client-side state (many pieces of UI needing to react to each other's changes)?
  12. What is a key architectural difference between Stimulus and a typical component-based framework like React, in terms of where the "source of truth" for UI state lives?
Gaps to close?
Read the curated Stimulus notes — core concepts, patterns, interview prep.
Stimulus notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web