|
|
|
|
|
by catwind7
2025 days ago
|
|
We adopted stimulusjs a couple of years ago for adding some basic interactivity on our pages and it was a decent tool, but we quickly grew out of it once we started adding more complex (form based) front-end behavior involving lots of state changes. We're currently trying to migrate a significant amount of stimulus code over to react. Not knocking on stimulusjs, but just be wary that it does not grow well with increasing client side complexity. You'll end up writing a lot of javascript boilerplate / DOM manipulation code / custom state management components. From my experience, it's a nice lightweight tool for when you: 1. Just need to add some light interactivity (toggling visibility of components, any basic view filtering) that do not involve a lot of logic
2. Don't need j.s unit tests (stimulus has not been the most testable tool - we lean mostly on integration tests). |
|