Skip to content

Commit

Permalink
translate: update the word 'state'
Browse files Browse the repository at this point in the history
Co-authored-by: Xavi Lee <awxiaoxian2020@163.com>
  • Loading branch information
thehelium and awxiaoxian2020 committed Mar 28, 2023
1 parent 1529291 commit e5db584
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/reference/react/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ title: "内置 React Hook"

## 状态 Hook {/*state-hooks*/}

*State* 让一个组件 ["记住" 像用户输入的信息](/learn/state-a-components-memory),比如,一个表单组件可以使用状态来存储输入值,而一个图片库组件可以使用状态来存储选定的图片索引
*state* 让一个组件 [“记住”像用户输入的信息](/learn/state-a-components-memory),比如,一个表单组件可以使用 state 来存储输入值,而一个图片库组件可以使用 state 来存储选定的图片索引

要给一个组件添加状态,使用这些 Hook 中的一个:

Expand Down

0 comments on commit e5db584

Please sign in to comment.