Strek
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
content/docs/introducing-jsx.md
|
|
@ -92,7 +92,7 @@ function getGreeting(user) { |
|
|
|
You may use quotes to specify string literals as attributes: |
|
|
|
|
|
|
|
```js |
|
|
|
const element = <div tabIndex="0"></div>; |
|
|
|
const element = <a href="https://www.reactjs.org"> link </a>; |
|
|
|
``` |
|
|
|
|
|
|
|
You may also use curly braces to embed a JavaScript expression in an attribute: |
|
|
|