Chris Ferdinandi personal blog

Just use a button

One of the weirdest “debates” I seem to perpetually have with framework-enthusiastic developers is whether or not a <div> is “just as good” as a <button>. Spoiler: it’s not. Let’s dig in. The problem Among the React crowd, and also among people who seem to enjoy HTMX, I see a lot this… <div onclick="showSignIn()">…
Points
294
HN comments
193
Submissions
1
Cited by
0 commenters

Web & FrontendDesign & UX2025

On Hacker News

SubmittedTitle on HNPointsComments
Oct 31, 2025Just use a button by moebrowne294193

More from Chris Ferdinandi

All 4 posts →

Related posts from the same era