Wrapping Up
Web applications built with htmx can have just as much interactivity as those built with SPA frameworks like React. It only requires writing some JavaScript code and/or mixing in the use of libraries like Alpine or _hyperscript. These libraries are lighter weight than SPA frameworks and are easy to use.
While a large amount of client-side functionality can be implemented using only htmx attributes, they cannot address all the needs. Next, we’ll learn about JavaScript functions provided by the htmx library that provide more capabilities.
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.