Browse Source

Fix jsx example for string attributes (#4204)

main
Strek 3 years ago
committed by GitHub
parent
commit
569949e266
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/introducing-jsx.md

2
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:

Loading…
Cancel
Save