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
javan
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
|
Why is it better to preserve state in the DOM?
|
3 | 3264 | March 26, 2018 | |
|
Storing a big list in top-level state: Stimulus or React?
|
2 | 1000 | October 3, 2018 | |
|
Idiomatic stimulus + server-side HTML caching?
|
2 | 1082 | February 3, 2019 | |
|
Sugestions for managing state on top of stimulusjs
|
1 | 1048 | December 17, 2018 | |
|
Adding Models to the architecture
|
3 | 2319 | October 17, 2019 |