mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
[docs] fix forms Default Value example
The Default Value section in the forms docs says "This example will function much like the Controlled Components example above." The example actually functions like the Uncontrolled Components example, not the Controlled Components example.
This commit is contained in:
@@ -95,7 +95,7 @@ If you want to initialize the component with a non-empty value, you can supply a
|
||||
}
|
||||
```
|
||||
|
||||
This example will function much like the **Controlled Components** example above.
|
||||
This example will function much like the **Uncontrolled Components** example above.
|
||||
|
||||
Likewise, `<input>` supports `defaultChecked` and `<select>` supports `defaultValue`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user