@samitouri / QOS-React / commits / a8c2c80fdc

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 (https://github.com/facebook/react/pull/5633, https://github.com/facebook/react/pull/5774) but both those PRs were wrong and it was just easier to fix it myself.

Jim committed Jan 4, 2016 at 12:52 UTC a8c2c80fdc91ffd661f49584aa2463a2115fc952
1 file changed +1 -1
docs/docs/07-forms.md
+1 -1
@@ -95,7 +95,7 @@ If you want to initialize the component with a non-empty value, you can supply a
95
96 This example will function much like the **Uncontrolled Components** example above.
97
98 -Likewise, `<input>` supports `defaultChecked` and `<select>` supports `defaultValue`.
98 +Likewise, `<input type="checkbox">` and `<input type="radio">` support `defaultChecked`, and `<select>` supports `defaultValue`.
99
100 > Note:
101 >