I’d say that’s a perfectly reasonable thing to do. In fact, we’re adding first class APIs for it in Stimulus 1.2: Coming in Stimulus 1.2: The Classes and Values APIs
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Why is it better to preserve state in the DOM?
|
3 | 3242 | March 26, 2018 | |
|
Storing a big list in top-level state: Stimulus or React?
|
2 | 985 | October 3, 2018 | |
|
Idiomatic stimulus + server-side HTML caching?
|
2 | 1071 | February 3, 2019 | |
|
Sugestions for managing state on top of stimulusjs
|
1 | 1044 | December 17, 2018 | |
|
Adding Models to the architecture
|
3 | 2311 | October 17, 2019 |