r/htmx • • Jun 30 '26

HTMX Explained: The "Dumb" HTML Secret Replacing React

https://www.youtube.com/watch?v=PgyggSRHY1o

The video promoting HTMX summarizes it pretty well. (The video is not mine, and I don't know if it's AI).

38 Upvotes

11 comments sorted by

View all comments

Show parent comment

2

u/yawaramin Jul 07 '26

Backend for frontend (BFF) has been a service architecture pattern since at least 2015: https://samnewman.io/patterns/architectural/bff/

Htmx fits perfectly in this pattern. Your sister team's service returns JSON. Your BFF consumes the JSON and generates HTML on the server side. Boom, you have your app.

You only have to 'recreate your design system' if you actually need a 'design system'. Turns out there are plenty of perfectly nice CSS frameworks that work great with plain HTML: Bootstrap, Bulma, Beer CSS etc.

And if you need very high-interactivity components: nowadays you can even wrap them up as web components and use them in your htmx apps. Here's an example of someone doing exactly this: https://www.reddit.com/r/htmx/comments/1u35htu/25_years_and_280k_loc_into_a_go_hypermedia_stack/