Is 'js.erb' approach obsolete? What are the alternatives?
Just like in the title, is using js.erb a bad practice? What are the best alternatives to manipulate the DOM?
I am trying to understand when to use each approach correctly, like stimulus or turbo streams etc.
I don't believe you'll be able to use .js.erb responses in Turbo going forward. They're pretty much replaced by TurboStreams. 👍