Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 475 Bytes

File metadata and controls

16 lines (10 loc) · 475 Bytes

jsx-a11y/href-no-hash

This lint rule comes up when you try to use an anchor tag without a valid href.

<a href="#"></a>

Why Does This Rule Exist?

More info: facebook/create-react-app#4141 (comment)

Takeaways

  • Use anchor tags for navigation (directing users to another page).
  • Use a button styled as a link for inline text that users should click on to make something happen (like clearing selected filters).