Skip to content
Permalink
Browse files

Improve README about Stimulus (#119)

  • Loading branch information...
Spone committed Aug 24, 2018
1 parent 0685c5c commit c2853f33dae11cda3014b7f20cd6a50cfd04e82e
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
@@ -253,15 +253,15 @@ This will create the component in an `admin` folder, and name its Ruby module `A

### Stimulus integration

Komponent supports [stimulus](https://github.com/stimulusjs/stimulus) 1.0.
Komponent supports [Stimulus](https://github.com/stimulusjs/stimulus) >= 1.0.

You can pass `--stimulus` to both generators to use Stimulus in your components.

```sh
rails generate komponent:install --stimulus
```

This will yarn `stimulus` package, and create a `stimulus_application.js` in the `frontend` folder.
This will `yarn add stimulus` and create a `stimulus_application.js` in the `frontend` folder.

```sh
rails generate component button --stimulus

0 comments on commit c2853f3

Please sign in to comment.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.