Browse Source

Fix typo in Introducing JSX snippet (#3417) (#3418)

main
Luckner 4 years ago
committed by GitHub
parent
commit
c8d19412dd
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 = <div tabIndex="0"></div>;
```
You may also use curly braces to embed a JavaScript expression in an attribute:

Loading…
Cancel
Save