How to use Stimulus JS 2.0's new Values and CSS Classes APIs

Track your progress

Sign in to track your progress and access subscription-only lessons.

Log In

Your Teacher

Hi, I'm Chris. I'm the creator of GoRails, and Jumpstart. I spend my time creating tutorials and tools to help Ruby on Rails developers build apps better and faster.

About This Episode

Stimulus JS 2.0 just came out and it includes the awesome Values and CSS Classes APIs


Stimulus JS 2.0 is finally out and it includes the brand new Values and CSS Classes APsI. These APIs have been in the works for almost 2 years now sitting in a PR with all of us patiently waiting this release.

These changes make parameters for your Stimulus controllers considerably easier to use. You'll use them to define options and CSS classes that your code uses.


Want to stay up-to-date with Ruby on Rails?

Join 76,990+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

    © 2023 GoRails, LLC. All rights reserved.