mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 11:52:00 +00:00
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user