Htmx Is the Future
If you like the concept of putting some work back to the server instead of throwing to the client, you may also checkout the liveview approach. It drives the entire website using the server with realtime updates (similar interactivity as SPA)This approach has been implemented in most popular programming languages used for backend development: https://github.com/liveviews/liveviews