DEV Community

Discussion on: Easy Accessibility: <button> vs <a>

Collapse
 
hozefaj profile image
Hozefa • Edited

One good way I have seen to prevent us from making this error is using eslint a11y rules for anchors.

Over the course of time, I have learned so many subtle differences in the usage of a vs button because of it.

Collapse
 
harryadney profile image
Martin Dimmock

Dumb question time: is that for React pages only?

Cheers.

Collapse
 
hozefaj profile image
Hozefa

There are parsers for other frameworks like vue or even typescript. So short answer is NO. eslint should work on most modern frameworks.