Skip to content

Commit c378d3f

Browse files
committed
Merge branch 'main' of https://github.com/reactjs/reactjs.org into sync-569949e2
2 parents 4d22883 + 569949e commit c378d3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/introducing-jsx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ function getGreeting(user) {
9292
你可以通过使用引号,来将属性值指定为字符串字面量:
9393

9494
```js
95-
const element = <div tabIndex="0"></div>;
95+
const element = <a href="https://www.reactjs.org"> link </a>;
9696
```
9797

9898
也可以使用大括号,来在属性值中插入一个 JavaScript 表达式:

0 commit comments

Comments
 (0)