Skip to content

Instantly share code, notes, and snippets.

@JLarky
Last active December 18, 2023 16:06
Show Gist options
  • Save JLarky/25f83594ea2a4fb0f35d51cd502ac857 to your computer and use it in GitHub Desktop.
Save JLarky/25f83594ea2a4fb0f35d51cd502ac857 to your computer and use it in GitHub Desktop.
Living dangerously (or safely) with HTMX

I created this demo :)

The main point is that it allows you to compare two apps, one is in React, one in HTMX. Then I introduce this concept of "hey, what if I wanted to store data in HTML or markdown or whatever instead of just text, how would I do that in HTMX? The main idea is that modern backend frameworks (in this case Astro) allow you to work with HTML pretty safely, but you still have to be careful with HTMX specifically because data- attributes are executable in HTMX 🫠, but I have an example how to workaround it as well :)

here are the shadow banned tweets :)

image

Links:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment