An Opinionated Collection of StimulusJS Best Practices
Unfortunately, the official docs lack clear guidelines and best practice examples. Thus, this guide tries to present advice for newcomers and intermediate Stimulus programmers.
Covered topics include:
- DOM manipulation
- Error Handling
- Integrating Libraries
- With rails-ujs
- With Turbo
Get updates when new articles are posted:
Who made this?
This site is maintained by Julian Rubisch, Stimulus Reflex core team member and senior Rails developer. A range of enthusiast volunteers helps keeping articles up to date and quality-assured.
Other Useful Resources
BetterStimulus is accompanied by
- Stimulus Toolbox - a searchable, curated repository of useful Stimulus controllers, articles etc. (by @hopsoft)
Disagree or have comments?
Take a look at https://github.com/julianrubisch/better-stimulus for ways to contribute and/or discuss content.