Skip to content

Commit

Permalink
Update JSX quote style rationale.
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinGrandon committed Nov 1, 2016
1 parent 231381e commit f73c8a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react/README.md
Expand Up @@ -187,8 +187,7 @@

- Always use double quotes (`"`) for JSX attributes, but single quotes for all other JS. eslint: [`jsx-quotes`](http://eslint.org/docs/rules/jsx-quotes)

> Why? JSX attributes [can't contain escaped quotes](http://eslint.org/docs/rules/jsx-quotes), so double quotes make contractions like `"don't"` easier to type.
> Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
> Why? Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
```jsx
// bad
Expand Down

0 comments on commit f73c8a5

Please sign in to comment.