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)<p>This approach has been implemented in most popular programming languages used for backend development: <a href="https://github.com/liveviews/liveviews">https://github.com/liveviews/liveviews</a>