8000 [guide] [react] add another “good” example · LEINWAND/javascript@a79237b · GitHub
[go: up one dir, main page]

Skip to content

Commit a79237b

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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