diff --git a/docs/_data/nav_docs.yml b/docs/_data/nav_docs.yml index 1be1ce3c07d..a6be939b778 100644 --- a/docs/_data/nav_docs.yml +++ b/docs/_data/nav_docs.yml @@ -34,6 +34,8 @@ title: Typechecking With PropTypes - id: refs-and-the-dom title: Refs and the DOM + - id: uncontrolled-components + title: Uncontrolled Components - id: optimizing-performance title: Optimizing Performance - id: react-without-es6 @@ -80,4 +82,3 @@ title: Shallow Compare - id: two-way-binding-helpers title: Two-way Binding Helpers - diff --git a/docs/docs/forms.md b/docs/docs/forms.md index a2ed12cda11..02208d42ba0 100644 --- a/docs/docs/forms.md +++ b/docs/docs/forms.md @@ -7,266 +7,87 @@ next: lifting-state-up.html redirect_from: "tips/controlled-input-null-value.html" --- -Form components such as ``, ` + ``` -For HTML, this easily allows developers to supply multiline values. However, since React is JavaScript, we do not have string limitations and can use `\n` if we want newlines. In a world where we have `value` and `defaultValue`, it is ambiguous what role children play. For this reason, you should not use children when setting `