diff --git a/react/README.md b/react/README.md index d1ce8c73da..dd5592f4ed 100644 --- a/react/README.md +++ b/react/README.md @@ -117,6 +117,10 @@ ## Quotes - 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