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 :)
Links:
- https://b2b-saaskit-git-feature-htmx-unsafe-fogbender-oss.vercel.app/demo
- https://github.com/fogbender/b2b-saaskit/blob/feature--htmx-unsafe/src/components/survey/Survey.tsx
- https://github.com/fogbender/b2b-saaskit/tree/feature--htmx-unsafe/src/pages/demo/htmx/safe
- https://twitter.com/JLarky/status/1682816409435291650