Skip to content

Commit

Permalink
Update react/README.md
Browse files Browse the repository at this point in the history
Fix jsx display issue in webpage
https://airbnb.io/javascript/react/#quotes

Fixes airbnb#2301
  • Loading branch information
rahulrk-dev committed Jul 11, 2021
1 parent f5c14ca commit a684a66
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ This style guide is mostly based on the standards that are currently prevalent i

> Why? Regular HTML attributes also typically use double quotes instead of single, so JSX attributes mirror this convention.
<!--- {% raw %} --->
```jsx
// bad
<Foo bar='bar' />
Expand All @@ -256,6 +257,7 @@ This style guide is mostly based on the standards that are currently prevalent i
// good
<Foo style={{ left: '20px' }} />
```
<!--- {% endraw %} --->

## Spacing

Expand Down

0 comments on commit a684a66

Please sign in to comment.