I am a django developer, and I am trying have you try to implement a form in stimulus? I’m a bit confused with something, let me explain.
I felt that stimulus encourages us to use html over json. So for example, in a todo app, if I have a form to create a new task - when I submit with a valid input, I return from the server the html with that task and insert that html in the task list.
That one feels great, but what about when the form gets an error? Here I’m says errors from the server, like the task has already another with the same name for example. You return an html with the errors too?
When you choose to use stimulus over turbo links? What your thoughts about that?