mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-21 19:31:57 +00:00
fix: the value property of checkbox to the checked property (#7804)
This commit is contained in:
@@ -2011,7 +2011,7 @@ export default function ContactList() {
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
value={reverse}
|
||||
checked={reverse}
|
||||
onChange={e => {
|
||||
setReverse(e.target.checked)
|
||||
}}
|
||||
@@ -2110,7 +2110,7 @@ export default function ContactList() {
|
||||
<label>
|
||||
<input
|
||||
type="checkbox"
|
||||
value={reverse}
|
||||
checked={reverse}
|
||||
onChange={e => {
|
||||
setReverse(e.target.checked)
|
||||
}}
|
||||
|
||||
Reference in New Issue
Block a user