Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/content/reference/react-dom/components/input.md
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ function SignupForm() {
<input type="checkbox" defaultChecked={something} />
```

If you want [to control this checkbox with a state variable,](#controlling-an-input-with-a-state-variable) specify an `onChange` handler:
如果你想 [用一个状态变量来控制这个复选框](#controlling-an-input-with-a-state-variable),指定一个 `onChange` 处理:

```js
// ✅ Good:具有 onChange 事件处理程序的受控多选框
Expand Down