Skip to content

Commit a79237b

Browse files
dhruvduttljharb
authored andcommitted
[guide] [react] add another “good” example
1 parent 09988e3 commit a79237b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

react/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@
269269
<Foo
270270
hidden
271271
/>
272+
273+
// good
274+
<Foo hidden />
272275
```
273276

274277
- 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)

0 commit comments

Comments
 (0)