Skip to content

Commit 86f5201

Browse files
BusbyActualljharb
authored andcommitted
[guide] quotes: corrected casing
Updated case to read the same in multiple spots. Added single quote example
1 parent 7882082 commit 86f5201

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

react/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185

186186
## Quotes
187187

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

190190
> Why? Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
191191

@@ -514,7 +514,7 @@
514514
1. `componentWillUnmount`
515515
1. *clickHandlers or eventHandlers* like `onClickSubmit()` or `onChangeDescription()`
516516
1. *getter methods for `render`* like `getSelectReason()` or `getFooterContent()`
517-
1. *Optional render methods* like `renderNavigation()` or `renderProfilePicture()`
517+
1. *optional render methods* like `renderNavigation()` or `renderProfilePicture()`
518518
1. `render`
519519

520520
- How to define `propTypes`, `defaultProps`, `contextTypes`, etc...
@@ -569,7 +569,7 @@
569569
1. `componentWillUnmount`
570570
1. *clickHandlers or eventHandlers* like `onClickSubmit()` or `onChangeDescription()`
571571
1. *getter methods for `render`* like `getSelectReason()` or `getFooterContent()`
572-
1. *Optional render methods* like `renderNavigation()` or `renderProfilePicture()`
572+
1. *optional render methods* like `renderNavigation()` or `renderProfilePicture()`
573573
1. `render`
574574

575575
## `isMounted`

0 commit comments

Comments
 (0)