Skip to content

Commit 2f912c1

Browse files
TrevorSayreljharb
authored andcommitted
[guide] [react] Update React README ref to jsx-a11y/img-has-alt
https://github.com/evcohen/eslint-plugin-jsx-a11y/pull/220
1 parent 18e5ac9 commit 2f912c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@
271271
/>
272272
```
273273

274-
- Always include an `alt` prop on `<img>` tags. If the image is presentational, `alt` can be an empty string or the `<img>` must have `role="presentation"`. eslint: [`jsx-a11y/img-has-alt`](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/img-has-alt.md)
274+
- Always include an `alt` prop on `<img>` tags. If the image is presentational, `alt` can be an empty string or the `<img>` must have `role="presentation"`. eslint: [`jsx-a11y/alt-text`](https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md)
275275

276276
```jsx
277277
// bad

0 commit comments

Comments
 (0)