You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: react/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,7 @@ This style guide is mostly based on the standards that are currently prevalent i
80
80
81
81
## Naming
82
82
83
-
-**Extensions**: Use `.jsx` extension for React components.
83
+
-**Extensions**: Use `.jsx` extension for React components.eslint: [`react/jsx-filename-extension`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md)
84
84
-**Filename**: Use PascalCase forfilenames. E.g., `ReservationCard.jsx`.
85
85
-**Reference Naming**: Use PascalCase for React components and camelCase for their instances. eslint: [`react/jsx-pascal-case`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-pascal-case.md)
86
86
@@ -351,7 +351,7 @@ This style guide is mostly based on the standards that are currently prevalent i
351
351
<div />
352
352
```
353
353
354
-
- Avoid using an array index as `key` prop, prefer a stable ID.
354
+
- Avoid using an array index as `key` prop, prefer a stable ID.eslint: [`react/no-array-index-key`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-array-index-key.md)
355
355
356
356
> Why? Not using a stable ID [is an anti-pattern](https://medium.com/@robinpokorny/index-as-a-key-is-an-anti-pattern-e0349aece318) because it can negatively impact performance and cause issues with component state.
0 commit comments