Skip to content

Commit

Permalink
Update JSX quote style rationale.
Browse files Browse the repository at this point in the history
  • Loading branch information
sensiblegame committed Nov 1, 2016
1 parent 67e1c8a commit 2775b5c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react/README.md
Original file line number Diff line number Diff line change
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 2775b5c

Please sign in to comment.