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/12Score 0

What is the relationship between Stimulus and Turbo (both part of the "Hotwire" approach from Basecamp)?

In this round
  1. What is the relationship between Stimulus and Turbo (both part of the "Hotwire" approach from Basecamp)?
  2. What is Stimulus?
  3. What is a Stimulus "controller"?
  4. What is a Stimulus controller "value" (declared via the `static values` property), and what does it provide?
  5. 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?
  6. How does Stimulus connect a JavaScript controller to a specific piece of HTML?
  7. What is the core philosophy behind Stimulus, often summarized as it being "a modest JavaScript framework"?
  8. What does it mean that Stimulus controllers are designed to be "reusable" across different parts of an application, and how does the targets/values system support this?
  9. What is a reasonable criterion for choosing Stimulus (plus Turbo/Hotwire) versus a full SPA framework (React, Vue) for a new web application?
  10. How would you register a new Stimulus controller class with the application?
  11. What is a "class" (declared via `static classes`) in a Stimulus controller, and how does it differ from a target?
  12. 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)?
Gaps to close?
Read the curated Stimulus notes — core concepts, patterns, interview prep.
Stimulus notes

More quizzes

.NETAccessibilityAgileAgile MethodologyAirflowAkka