News for hackers. Stuff that matters.
Re:Just Use a Button by Zak on Friday October 31, 2025 @03:26PM (#45775742)
I've seen an increase in people doing this sort of thing over the past few years. I imagine it has something to do with frameworks and ignorance or apathy, but the old fashioned way almost always provides the best UX.

To anyone reading who has tried to get fancy with a substitute for the <a> tag, I wish you mild discomfort and inconvenience.

Re:Just Use a Button by philistine on Friday October 31, 2025 @03:50PM (#45775993)
Could it be that the devs who write that code are not allowed to touch the CSS so they implement the visual functionality they want in their framework instead of telling the design team their intent?
Re:Just Use a Button by Zak on Friday October 31, 2025 @04:06PM (#45776135)
There could be any number of weird constraints that would lead a developer who knows better to do such a thing in a specific situation, but someone designed (or failed to intentionally design) the system in question.

That person should sit alone in a room with no distractions and think about what they did.

Re:Just Use a Button by lewiscollard on Saturday November 01, 2025 @12:02PM (#45782714)
No, it is because a significant subset of React developers do not know how to write HTML.
Re:Just Use a Button by mrcsharp on Friday October 31, 2025 @10:44PM (#45778853)
What's scary is that with proliferation of LLM-assisted code editors and vibe coding, and considering the training material for these models, this is only going to get worse and worse.
Re:Just Use a Button by 3form on Saturday November 01, 2025 @08:38AM (#45781178)
These people clearly don't care for mild discomfort and inconvenience already...