Skip to content

Stimulus

Stimulus is a modest JavaScript framework that works with server-rendered HTML. It enhances static HTML with behavior through controllers, targets, and actions, making it ideal for projects using Hotwire or traditional server-side frameworks.

In This Section

  • Getting Started — Controllers, targets, actions, and basic setup
  • Lifecycle & State — Controller lifecycle callbacks and state management
  • Cross-Controller Communication — Events, outlets, and shared state
  • Real-World Patterns — Forms, modals, infinite scroll, and lazy loading