diff --git a/releases/next/docs/handling-text-input.html b/releases/next/docs/handling-text-input.html index 4bf8dd0855b..dff441c46e9 100644 --- a/releases/next/docs/handling-text-input.html +++ b/releases/next/docs/handling-text-input.html @@ -25,7 +25,7 @@ class PizzaTranslator extends } } -AppRegistry.registerComponent('PizzaTranslator', () => PizzaTranslator);

In this example, we store text in the state, because it changes over time.

There are a lot more things you might want to do with a text input. For example, you could validate the text inside while the user types. For more detailed examples, see the React docs on controlled components, or the reference docs for TextInput.

Text input is probably the simplest example of a component whose state naturally changes over time. Next, let's look at another type of component like this is one that controls layout, and learn about the ScrollView.

← PrevNext →

You can edit the content above on GitHub and send us a pull request!