Accessible links and buttons with React

1 · Hugo Giraudel · Jan. 17, 2020, 10:19 a.m.
Summary
An age old problem of the web platform when it comes to accessibility has been to confuse links and buttons. A link (<a>) leads to somewhere. A button (<button>) performs an action. It’s important to respect that convention. Now, in single page applications, things are bit more blurry because we no longer follow links which cause a page to reload entirely. Links, while still changing the URL, tend to replace the part of the page that changed. Sometimes, they might be replaced entirely by an inli...