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

This commit is contained in:
Luckner
2020-12-04 14:15:37 +00:00
committed by GitHub
parent e9da0fa160
commit c8d19412dd

View File

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