Browse Source

Fix typo (#5222)

main
Naomi Pentrel 2 years ago
committed by GitHub
parent
commit
fc7bd4d5e6
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      beta/src/content/learn/index.md

2
beta/src/content/learn/index.md

@ -96,7 +96,7 @@ If you have a lot of HTML to port to JSX, you can use an [online converter.](htt
## Adding styles {/*adding-styles*/}
In React, you specify a CSS class with `className`. It works the same way as HTML [`class`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class) attribute:
In React, you specify a CSS class with `className`. It works the same way as the HTML [`class`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/class) attribute:
```js
<img className="avatar" />

Loading…
Cancel
Save