Skip to content

Commit

Permalink
Add info on how to add the stimulus package
Browse files Browse the repository at this point in the history
  • Loading branch information
robbevp committed Feb 5, 2023
1 parent 585bf65 commit 0c165dc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ The controller watches for changes to computed display style to automatically ru

Run `yarn add stimulus-transition` to install

If you are using `@hotwired/stimulus` instead of `stimulus` in your project's `package.json`, you need to add `stimulus add an alias in your dependencies:
```json
"dependencies": {
...
"stimulus": "npm:@hotwired/stimulus"
}
```


Register the controller in your application
```javascript
import { Application } from "stimulus"
Expand Down

0 comments on commit 0c165dc

Please sign in to comment.