How do you deal with adding client side reactivity when using LiveView?

I’ve been doing lots of HTMX lately and it’s really good but from time to time I’ve been facing some had problems that require client side javascript to do a fast action in case the request latency is too high. For example, once I’m validating the field on a form I disable the submit button and things like that.

How do you deal with these problems with LiveView? Same approach? Plug some JS snippets to do it?

LiveView ships with client side JS Commands that handles reacting quickly to many common client side interactions.

When those don’t cover a particular use case, then LiveView client hooks provide an escape hatch to plug in those JS snippets.