4 ms·
I played with HTMX for a bit. Its pretty cool and basically an easy way abstract away fetch() and swapping innerHTML. You can even send custom headers along w
by SJC_Hacker 3y ago
I played with HTMX for a bit. Its pretty cool and basically an easy way abstract away fetch() and swapping innerHTML.
You can even send custom headers along with the request (important for 'Authorization' headers) You can also trigger behavior after the fetch by sending an 'HX-Trigger'. So on the surface, does seem your one-stop shop for all things client-server interaction.
There may come a point howecer, where you hit a brick wall with HTMX. Frameworks were created for a reason, and it wassn't just the fact that fetch() and setting innerHTML were too verbose (those can be easily abstracted away)
Then you're back in framework land. And can be hard to make those two place nice with each other. React, particularly, doesn't like you messing around with innerHTML.