Skip to content

Commit c0de387

Browse files
authored
Merge pull request #247 from AlmeroSteyn/anchor-is-valid-doc-fix
[Docs]: anchor-is-valid doc fix.
2 parents 83994a8 + 87e54eb commit c0de387

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/anchor-is-valid.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ If you need to create an interface element that the user can mouse over or mouse
8383
onClick={() => this.setState({showSomething: true})}>
8484
onMouseEnter={() => this.setState({showSomething: true})}>
8585
{label}
86-
</a>
86+
</div>
8787
```
8888

8989
In the example immediately above an `onClick` event handler was added to provide the same experience mouse users enjoy to keyboard-only and touch-screen users. Never fully rely on mouse events alone to expose functionality.
@@ -100,7 +100,7 @@ This rule takes one optional object argument of type object:
100100
```json
101101
{
102102
"rules": {
103-
"jsx-a11y/href-no-hash": [ 2, {
103+
"jsx-a11y/anchor-is-valid": [ 2, {
104104
"components": [ "Link" ],
105105
"specialLink": [ "hrefLeft", "hrefRight" ]
106106
}],

0 commit comments

Comments
 (0)