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
+4-2
Original file line number
Diff line number
Diff line change
@@ -242,7 +242,8 @@ This style guide is mostly based on the standards that are currently prevalent i
242
242
- Always use double quotes (`"`) forJSX attributes, but single quotes (`'`) for all other JS. eslint: [`jsx-quotes`](https://eslint.org/docs/rules/jsx-quotes)
243
243
244
244
> Why? Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
245
-
245
+
246
+
<!--- {% raw %} -->
246
247
```jsx
247
248
// bad
248
249
<Foo bar='bar' />
@@ -256,7 +257,8 @@ This style guide is mostly based on the standards that are currently prevalent i
256
257
// good
257
258
<Foo style={{ left: '20px' }} />
258
259
```
259
-
260
+
<!--- {% endraw %} -->
261
+
260
262
## Spacing
261
263
262
264
- Always include a single space in your self-closing tag. eslint: [`no-multi-spaces`](https://eslint.org/docs/rules/no-multi-spaces), [`react/jsx-tag-spacing`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md)
0 commit comments