4 ms·
I've been using Stimulus in a couple of projects render HTML server-side and use Turbolinks. It makes JS enhancements/sprinkles so much easier to implement. S
by deedubaya 8y ago
I've been using Stimulus in a couple of projects render HTML server-side and use Turbolinks.
It makes JS enhancements/sprinkles so much easier to implement. Stimulus is a step in the right direction from jQuery hell but not a fully loaded client-side rendering framework.
I've done a lot of React/Angular/Vue in the past. Stimulus is a much more light handed approach that I really appreciate as a developer -- less duplicated logic and common sense defaults. Dead simple to pick up.
For content based sites, Stimulus is a much better tool IMHO.
- erokar 8y agoHow easy is it to use it outside of Rails, e.g. in Django?
- denisw 8y agoStimulus is not bound to Rails in any way. It‘s just an NPM package which can be used whereever you have a JavaScript bundler setup (e.g., Webpack). I‘m not sure whether there is a build that can be embedded directly with a <script> tag.
- always_good 8y agoIt's a matter of including a <script> tag and then reading the caveats. Very likely to work for a traditional server-rendered app.