3 ms·
As someone who's worked with HTML 3.2: people using <a> as button, and button (and before that, input type=button) as link via JS predates React by several deca
by TheRealPomax 6y ago
As someone who's worked with HTML 3.2: people using <a> as button, and button (and before that, input type=button) as link via JS predates React by several decades.
As for that last statement: not sure if you're missing words, but when I say someone is not a web dev, I mean they not web devs. They may be devs, and the technologies they use might use part of the web stack, but they're not developing web content, they're developing different content with a completely different event model, a completely different UI methodology, and completely different runtime requirements.
Any time you encounter a website where the back button doesn’t work, or with a “link” that works when you click it but can’t be right-clicked to open in a new tab, that’s probably the work of someone who doesn't understand their deployment target well enough to do the right thing, so educate them. Whether that's because they're only used to React, or because they don't realise that web content comes with conventions that they're not adhering to makes no difference. Any time you see broken behaviour, it's because the web stack made that easier than doing the right thing. That's on all of us.