Installing Stimulus

Learn to install Stimulus locally in this lesson.

We'll cover the following

Configuration

We’ve already installed Stimulus as part of the hotwire-rails gem install. Stimulus depends on static class attributes, however, which are not a part of standard JavaScript. That works fine with the default setup if we were writing JavaScript, but in order to get the class attributes to run in TypeScript, we need to change the Babel setup in package.json to this:

Get hands-on with 1400+ tech skills courses.