Skip to content

Commit 9790be0

Browse files
committed
chore: Use HTML character entities to display JSX code in a markdown format without being rendered as HTML.
1 parent 6499695 commit 9790be0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

react/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,16 @@ This style guide is mostly based on the standards that are currently prevalent i
245245

246246
```jsx
247247
// bad
248-
<Foo bar='bar' />
248+
&lt;Foo bar='bar' /&gt;
249249
250250
// good
251-
<Foo bar="bar" />
251+
&lt;Foo bar="bar" /&gt;
252252
253253
// bad
254-
<Foo style={{ left: "20px" }} />
254+
&lt;Foo style={{ left: "20px" }} /&gt;
255255
256256
// good
257-
<Foo style={{ left: '20px' }} />
257+
&lt;Foo style={{ left: '20px' }} /&gt;
258258
```
259259

260260
## Spacing

0 commit comments

Comments
 (0)