Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve README about Stimulus #119

Merged
merged 1 commit into from Aug 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -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
Expand Down