Skip to content

Commit a8c2c80

Browse files
committed
Fix wording to make it more clear that checkbox (input) supports defaultChecked
Fix some confusion about why `input` would support `defaultChecked` (it's because you can have an input of type checkbox). This has come up a couple of times (facebook#5633, facebook#5774) but both those PRs were wrong and it was just easier to fix it myself.
1 parent bdcb69f commit a8c2c80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/docs/07-forms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ If you want to initialize the component with a non-empty value, you can supply a
9595

9696
This example will function much like the **Uncontrolled Components** example above.
9797

98-
Likewise, `<input>` supports `defaultChecked` and `<select>` supports `defaultValue`.
98+
Likewise, `<input type="checkbox">` and `<input type="radio">` support `defaultChecked`, and `<select>` supports `defaultValue`.
9999

100100
> Note:
101101
>

0 commit comments

Comments
 (0)