Add further reasoning for using double quotes in JSX

This commit is contained in:
Kevin Cooper
2015-10-01 16:53:49 -07:00
parent d4f69efeec
commit ef7fbea3d9

View File

@@ -119,6 +119,7 @@
- Always use double quotes (`"`) for JSX attributes, but single quotes for all other JS.
> Why? JSX attributes [can't contain escaped quotes](http://eslint.org/docs/rules/jsx-quotes), so double quotes make conjunctions like `"don't"` easier to type.
> Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
```javascript
// bad