Hacker News new | ask | show | jobs
by recursivedoubts 1455 days ago
you'd use hyperscript for something client side like that:

on click set @src to "https://whatever.com/cat.gif"

the htmx approach would be to replace the image tag entirely