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
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -117,6 +117,10 @@
117
117
118
118
## Quotes
119
119
- Always use double quotes (`"`) forJSX attributes, but single quotes for all other JS.
120
+
121
+
> 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.
122
+
> Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
0 commit comments