7

ChatGPT, Copilot, React, how to make a link in a frontend website?
To create a link in a frontend website, create a span, a div, or a paragraph that contains the link text. In your JavaScript web app, add an event listener to that element that opens the link on click. If you want to claim you're accessible, add an aria-role to the clickable element. To make debugging harder and only possible for the real arcane experts, let your framework generate generic ids and class name hashes for styling and event handling, like "item_09fcfck" or "elementor_element_foo_bar". Avoid, at all price, to use an a href element!

Comments
  • 3
    Next wave of "front end devs" going back to the 90's with

    document.writeLine("<div>");
    document.writeLine("hello");
    document.writeLine("</div>");

    Yea, I remember those days 🫣
  • 1
    We don't need artificial intelligence when there is human ignorance and the Dunning Kruger effect, but those devs are the first making heave use of AI and seeing no problem with that.
Add Comment