Skip to content

Commit

Permalink
Update src/content/reference/react/createRef.md
Browse files Browse the repository at this point in the history
Co-authored-by: Xleine <919143384@qq.com>
  • Loading branch information
Yucohny and Xleine authored Apr 24, 2023
1 parent 86ee0fa commit 20b8406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/createRef.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class MyComponent extends Component {
`createRef` 返回一个对象,该对象只有一个属性:
* `current`最初,它被设置为 `null`。你可以稍后将其设置为其他内容。如果你把 ref 对象作为 JSX 节点的 `ref` 属性传递给 React,React 将设置其 `current` 属性。
* `current`初始值为 `null`,你可以稍后设置为其他内容。如果你把 ref 对象作为 JSX 节点的 `ref` 属性传递给 React,React 将设置其 `current` 属性。
#### 注意事项 {/*caveats*/}
Expand Down

0 comments on commit 20b8406

Please sign in to comment.