Wrapping Up

We have explored a number of common scenarios that you’re likely to encounter in your use of htmx. My hope is that you can refer back to this book whenever you have a need to implement similar features and draw inspiration from the solutions shared here.

Up to this point, we have focused exclusively on server-side functionality. But many web apps also utilize client-side interactivity. The htmx library provides some support for this, and we’ll explore that in Chapter 6, “Utilizing the htmx JS API.” But typically you’ll want to add the use of another library.

Next, we’ll explore options for implementing client-side interactivity, including the Alpine and _hyperscript libraries.

Get Server-Driven Web Apps with htmx now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.