Skip to content

Commit faabead

Browse files
fadilsFacebook Github Bot 1
authored andcommitted
Fix JSX string props quote convention
Summary: Not sure if I misunderstand the previous JSX convention. But I found that in JSX string props, double-quote is preferred instead. https://github.com/facebook/react-native/blob/master/.eslintrc#L182 ![screen shot 2016-07-21 at 5 32 04 am](https://cloud.githubusercontent.com/assets/6204776/17006166/137db7ae-4f09-11e6-871b-2cf99960e3a1.png) Closes facebook#8933 Differential Revision: D3597084 fbshipit-source-id: 606a2123f1a1ff1fe2234b636b68b3273ebf6ebb
1 parent 700e82f commit faabead

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ Facebook has a [bounty program](https://www.facebook.com/whitehat/) for the safe
101101

102102
#### JSX
103103

104-
* Prefer `'` over `"` for string literal props
104+
* Prefer `"` over `'` for string literal props
105105
* When wrapping opening tags over multiple lines, place one prop per line
106106
* `{}` of props should hug their values (no spaces)
107107
* Place the closing `>` of opening tags on the same line as the last prop

0 commit comments

Comments
 (0)