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

December 7, 2020

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, Hatchbox.io 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

Notes

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.

Resources

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

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

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