I would recommend reading the essays on the htmx website for more in-depth discussion:
https://htmx.org/essays