I have a SJR endpoint which renders HTML for two different elements and then updates them. What is the proposed approach to do this with Stimulus?
With Stimulus, I can send only one HTML response from the server. So the only solution which I see is to parse the response and then update each element separately. But, I kind of don’t like this solution because SJR approach looks much simpler to me. Is there a better way how to do this with stimulus?
Thank you in advance for any ideas!