Hacker News new | ask | show | jobs
by tacker2000 230 days ago
Yup, this is the incompetence that we see all over the place since these new frameworks have come and front end devs have no idea what HTML actually is or how it works.

Buttons are for submitting forms and nothing else.

In HTML a link is created using an <a> element.

React has a <Link> element for this purpose, it will be rendered as <a>.

Please OP, at least try to learn a little bit about the underlying technologies.

1 comments

It has nothing to do with "new frameworks". ASP devs have been making buttons into links for decades.

Also, React does not have a Link element. Please at least try to learn a little bit about the underlying technologies.

The router does. We all know what they meant.