🎉 Breaking News: #Buttons Exist! 🚨 Some developers apparently think a div is just as good as a button. Spoiler alert: they’re wrong. #Divs, while versatile, don’t magically become #buttons just because you want them to—no matter how many JavaScript tricks you try. 🙄 #ButtonGate2025
https://gomakethings.com/just-use-a-button/ #Exist #vs #UI #Design #Web #Development #ButtonGate2025 #HackerNews #ngated
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()"> Open Modal </div>function showSignIn () { // Code to show the sign-in modal. // The details of what happens here vary by stack.

Ah, the future! 💸 Where #collapsing a div costs you more than your morning latte and your browser thinks you're a #robot trying to overthrow humanity. 🤖 But don't worry, just wait 6 seconds and maybe the #internet will let you in on its #secrets. Just maybe. 🌐
https://old.reddit.com/r/webdev/comments/1jged6g/imagine_telling_2010_devs_that_in_2025_collapsing/ #future #tech #divs #control #HackerNews #ngated