Skip to content

Commit 4070c5a

Browse files
committed
Use JSX lang for React
1 parent 867a2a0 commit 4070c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ test("When flagging to show only VIP, should display only VIP members", () => {
12011201

12021202
![](https://img.shields.io/badge/🔧%20Example%20using%20React-blue.svg "Examples with React")
12031203

1204-
```html
1204+
```jsx
12051205
// the markup code (part of React component)
12061206
<h3>
12071207
<Badge pill className="fixed_badge" variant="dark">
@@ -1228,7 +1228,7 @@ test("Whenever no data is passed to metric, show 0 as default", () => {
12281228

12291229
### :thumbsdown: Anti-Pattern Example: Relying on CSS attributes
12301230

1231-
```html
1231+
```jsx
12321232
<!-- the markup code (part of React component) -->
12331233
<span id="metric" className="d-flex-column">{value}</span>
12341234
<!-- what if the designer changes the classs? -->

0 commit comments

Comments
 (0)